面圈网
Uber Go Style Guide(Uber Go 语言风格指南)
教程首页
更多
社区
面经
公司
技术栈
源码
在线文稿
资源下载
书库
登录
Introduction
Guidelines
Pointers to Interfaces
Receivers and Interfaces
Zero-value Mutexes are Valid
Copy Slices and Maps at Boundaries
Defer to Clean Up
Channel Size is One or None
Start Enums at One
Error Types
Error Wrapping
Handle Type Assertion Failures
Don't Panic
Use go.uber.org/atomic
Performance
Prefer strconv over fmt
Avoid string-to-byte conversion
Style
Group Similar Declarations
Import Group Ordering
Package Names
Function Names
Import Aliasing
Function Grouping and Ordering
Reduce Nesting
Unnecessary Else
Top-level Variable Declarations
Prefix Unexported Globals with _
Embedding in Structs
Use Field Names to initialize Structs
Local Variable Declarations
nil is a valid slice
Reduce Scope of Variables
Avoid Naked Parameters
Use Raw String Literals to Avoid Escaping
Initializing Struct References
Format Strings outside Printf
Naming Printf-style Functions
Patterns
Test Tables
Functional Options
暂无相关搜索结果!
Patterns
浏览
190
分享
2020-03-26 18:31:26
Patterns
Patterns
Test Tables
Functional Options
上一节
目录
下一节
您未登录,请先登录后再评论
评论列表
正在加载评论...
分享,让知识传承更久远
×
登录
×
微信登录
账号登录
验证码登录
记住我
登 录
忘记密码?
没有帐户?
立即注册
获取短信验证码
登 录
没有帐户?
立即注册