导出的const应该有评论

I'm trying to export a constant from a go like this:

package log

const (
    FATAL = iota // fatal errors
    ERROR = iota // errors might happend
    DEBUG = iota // debug mode
) // const for logging levels

But I'm getting golint error :

exported const FATAL should have comment  (or a comment on this block) or be unexported (golint)

And it's right I'm getting later error in getting access to log.FATAL etc.

Comments for documentation always immediately preceded what they are documenting.

const (
    // FATAL represents fatal errors
    FATAL = iota

Also you can provide a comment for a set of constants:

// Comment
const (
    FATAL = iota
    ERROR
    DEBUG
)