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