Clicky

Comment on exported method should be of the form

February 23, 2018

Problem

comment on exported method should be of the form " …”

Solution

The type

func (p MyType) Get2() int { return p.i }

should have a comment in the form:

// Get2 blablabla 
func (p MyType) Get2() int { return p.i }\]\]>