主页

索引

模块索引

搜索页面

1.8.6. 文档相关

exported type xxx should have comment or be unexported:

// Bird ...this is a nice type.
type Bird struct {
  Name           string
  LifeExpectance int
}

注意: comment on exported type Bird should be of the form "Bird ..." (with optional leading article)

exported method xxx should have comment or be unexportedgo-lint:

// Fly is fly.
func (b *Bird) Fly() {
  fmt.Println("I am flying...")
}

注意: comment on exported method Bird.Fly should be of the form "Fly ..."

主页

索引

模块索引

搜索页面