ByteLearn.dev bytelearn.dev Courses Blog
Go in Practice
01. Project Structure & Setup 15min02. Configuration 20min03. Structured Logging with slog 25min04. HTTP Routing with net/http 15min05. Middleware 20min06. Error Handling 20min07. Multi-Module with go work 15min08. Database with database/sql 25min09. HTTP Client 20min10. Testing 30min11. Templates with html/template 45min12. Embedding with go:embed 20min13. Graceful Shutdown 20min14. Profiling & Benchmarks 30min15. Performance Optimization 25min16. Makefile Docker & Deployment 30min17. Put It All Together 10minGlossary 5min 🏆 Final Quiz

Pass a lesson quiz to unlock feedback

GitHub or Google sign in to save progress across devices.

← Go in Practice

Full Examples

Complete examples for each lesson.

01. Project Structure & Setup

  • 📄 Project Setup · run locally

02. Configuration

  • 📄 Config Struct · run locally

03. Structured Logging with slog

  • 📄 slog Setup · Go Playground
  • 📄 slogr Package · run locally

04. HTTP Routing with net/http

  • 📄 Bookmarks API · run locally

05. Middleware

  • 📄 Middleware Chain · run locally

06. Error Handling

  • 📄 Trace Error · Go Playground

07. Multi-Module with go work

  • 📄 Go Workspace · run locally

08. Database with database/sql

  • 📄 Bookmark Store · run locally

09. HTTP Client

  • 📄 URL Checker · run locally

10. Testing

  • 📄 Handler Tests · run locally

11. Templates with html/template

  • 📄 Bookmark List Page · run locally

12. Embedding with go:embed

  • 📄 Embed Assets · run locally

13. Graceful Shutdown

  • 📄 Graceful Main · run locally

14. Profiling & Benchmarks

  • 📄 Benchmark · run locally

16. Makefile Docker & Deployment

  • 📄 Docker Setup · run locally

17. Put It All Together

  • 📄 Full main.go · run locally
  • 📄 Full config.go · run locally
  • 📄 Full model.go · run locally
  • 📄 Full store.go · run locally
  • 📄 Full handler.go · run locally
  • 📄 Full handler_html.go · run locally
  • 📄 Full middleware.go · run locally
  • 📄 Full Templates · run locally
  • 📄 Full Styles · run locally
  • 📄 Full Docker Setup · run locally
© 2026 ByteLearn.dev. Free courses for developers. · Privacy · Terms · About
☕