Code for my Go Cookbok articles.
For even more info, see free book Essential Go.
All code samples are public domain. You can use them any way you want, without attribution.
Legend:
- 3 ways to iterate, code: 3-ways-to-iterate
- Advanced command execution in Go with os/exec, code: advanced-exec
- Generating good, random and unique ids in Go, code: generate-unique-id
- HTTPS for free in Go, code: free-ssl-certificates
- Embedding build number in Go executable, code: embed-build-number
- Simple serialization format for logging and analytics in Go, no code
- Rotate log files daily, no code
- Using MySQL in Docker for local testing In Go, code: start-mysql-in-docker-go