Главная
Study mode:
on
1
Intro
2
Naming examples
3
Object construction
4
Zero value considerations
5
Working with zero values
6
New constructor function
7
What do these do?
8
Singleton options
9
Logging counter-example
10
Logging advice
11
Better logging example
12
interfaces vs structs
13
Let's make a random package
14
When to panic
15
Channels
16
When to spawn goroutines
17
When to use context.Context and when not to
18
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.

Practical Advice for Go Library Authors

Gopher Academy
Add to list
0:00 / 0:00