プロジェクト
概要
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
関連プロジェクトを探す
読み込み中…