EasyEnv
Engineering/Courses/Catalog/Go/Deployment and Production
Go
BeginnerLesson 20 of 2045 min · hands-on

Deployment and Production

Part of the Go course

There is a gap between a program that runs on your laptop and a program you are willing to leave running while you sleep. Closing it is not glamorous work and it is mostly mechanical, which is good news: the same five things come up every time, and Go is unusually well set up for all five.

The gap is real, though. A program that works perfectly when you press Ctrl-C at your desk can drop live requests when a deployment restarts it. A binary that runs fine on your machine can refuse to start in a container because a library it silently depended on is not there. Configuration that lives in a constant means every environment needs its own build. ...

Want to learn Go Deployment and Production in a real environment?

Click below, get a fresh Linux box with Go ready to go, and work through Deployment and Production hands-on with an AI tutor that knows your code.

Start this lessonDeployment and Production

What you'll learn

  • CGO_ENABLED=0 static binaries
  • Cross-compile with GOOS and GOARCH
  • Graceful shutdown with http.Server and signal.NotifyContext
  • Minimal Dockerfile with scratch or distroless
  • Reading config from environment variables

Read this lesson in your language

All lessons in this course

20 lessons
  1. 1Hello, Go25 min
  2. 2Variables and Types25 min
  3. 3Control Flow: if and for30 min
  4. 4Functions30 min
  5. 5Slices and Maps35 min
  6. 6Structs and Pointers35 min
  7. 7Methods and Interfaces35 min
  8. 8Error Handling35 min
  9. 9Modules and Project Structure35 min
  10. 10Tiny CLI Capstone40 min
  11. 11A Tour of the Standard Library40 min
  12. 12Testing and Benchmarks40 min
  13. 13Goroutines and Channels40 min
  14. 14Concurrency Patterns45 min
  15. 15Generics35 min
  16. 16HTTP Servers45 min
  17. 17Databases with database/sql45 min
  18. 18Performance and Profiling40 min
  19. 19Design Patterns in Go40 min
  20. 20Deployment and Production45 min

Explore other courses

Deployment and Production - Go (English) | Engineering Courses