项目
在 GitHub 查看
knsh14/uber-style-guide-ja
关于
https://github.com/knsh14/uber-style-guide-ja/blob/master/guide.md# uber-style-guide-ja
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文https://github.com/knsh14/uber-style-guide-ja/blob/master/guide.md# uber-style-guide-ja
https://github.com/knsh14/uber-style-guide-ja/blob/master/guide.md# About uber-go/guideの日本語訳
https://github.com/knsh14/uber-style-guide-ja/blob/master/guide.md# Table of Contents
- 導入
- ガイドライン
- Pointers to Interfaces
- Verify Interface Compliance
- 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
- Use
"time"to handle time - Errors
- Handle Type Assertion Failures
- Don't Panic
- Use go.uber.org/atomic
- Avoid Mutable Globals
- Avoid Embedding Types in Public Structs
- Avoid Using Built-in Names
- Avoid
init() - Exit in Main
- Use field tags in marshaled structs
- Don't fire-and-forget goroutines
- Performance
- Style
- Avoid overly long lines
- Be Consistent
- 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
- Local Variable Declarations
- nil is a valid slice
- Reduce Scope of Variables
- Avoid Naked Parameters
- Use Raw String Literals to Avoid Escaping
- Initializing Structs
- Initializing Maps
- Format Strings outside Printf
- Naming Printf-style Functions
- Patterns
- Linting
探索相关项目
加载中…