Tuesday 5 November 2019

comment on exported type Todo should be of the form "Todo ..." (with optional leading article) go-lint

//Todo is to struct with Title in string and Done in bool
type Todo struct {
    Title string
    Done  bool
}


==========

Just start the comment with name of the variable

Refer : https://golang.org/doc/effective_go.html#commentary



No comments:

Post a Comment