If something is hard to do, make someone else do it
19
Designing for efficiency
20
Using /vendor in libraries
21
Build tags
22
Staying clean
Description:
Explore practical advice for Go library authors in this 41-minute conference talk from GopherCon 2016. Dive into essential topics such as naming conventions, object construction, zero value considerations, and constructor functions. Learn about singleton options, effective logging practices, and the pros and cons of interfaces versus structs. Discover best practices for creating random packages, handling panics, and working with channels and goroutines. Gain insights on when to use context.Context, designing for efficiency, and leveraging /vendor in libraries. Master the art of clean code organization and effective use of build tags to create robust and user-friendly Go libraries.