
camelCaseServeHTTPi, j, kcustcustomervar tt []*Thingfor i, t := range tt {
...
}- 避免重复的包名:
log.Info() // good log.LogInfo() // bad
getterssetterscustSvc.cust() // good custSvc.getCust() // bad
ertype Stringer interfaces {
String() string
}更多golang技术文章,请访问golang教程栏目!