Skip to content

go lint is giving errors while executing a new rule implementation #240

Answered by newm4n
nagarajtrivedi asked this question in Q&A
Discussion options

You must be logged in to vote

Its clearly stated in the files, and line numbers.
You need to make comments explaining the type, method and functions. Such as

// MyData is a struct about this and that
type MyData struct {
     ...
}

// GetMsg will do this and that
func (md *MyData) GetMsg() {
      ...
}

// TestMultipleTimesRuleExec is to test this and that ...
func TestMultipleTimesRuleExec(t *testing.T) {
    ...
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nagarajtrivedi
Comment options

Answer selected by newm4n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants