我正在嘗試像這樣導出一個常量:package logconst ( FATAL = iota // fatal errors ERROR = iota // errors might happend DEBUG = iota // debug mode) // const for logging levels但我收到 golint 錯誤:exported const FATAL should have comment (or a comment on this block) or be unexported (golint)沒錯,我后來在訪問 log.FATAL 等時遇到了錯誤。
- 2 回答
- 0 關注
- 140 瀏覽
添加回答
舉報
0/150
提交
取消