Golang: Pattern
10th November 2022 at 7:01pm
Golang
如果不确定应该怎么做,看看 100 Go Mistakes 一书。提供了各种常见问题、代码设计的解决方案。
TOC
Golang: Pattern: Close Once
Golang: Pattern: Decode JSON with Dynamic Fields
Golang: Pattern: Drain Channels When Closing
Golang: Pattern: Error Handling with Err()
Golang: Pattern: Functional Options
Golang: Pattern: Iterate with Next()
Golang: Pattern: Override Struct Method
Golang: Pattern: Type Alias for Readability