Clicky

Exported type should have comment or be unexported

February 23, 2018

Problem

exported type should have comment or be unexported

Solution

The type

type MyType struct{ i int }\]\]>  

should have a comment in the form:

// MyType blablabla 
type MyType struct{ i int }\]\]>