Programming with Go Modules

Programming with Go Modules

1h 45mAdvanced2024-03-22

Authors

Vladimir Vivien

Vladimir Vivien

Course details

While modules are crucial to how Go programs are built, it’s difficult to find a comprehensive overview that gives the subject its proper due. In this course, designed uniquely for intermediate programmers looking to further their understanding of the Go module system, instructor Vladimir Vivien shows you the fundamental skills and technical know-how required to start developing and publishing Go modules on your own. Along the way, learn how to reuse module packages, publish modules, release versioned modules, and more. By the end of this course, you’ll be ready to take your Go skills to the next level and boost your programming career.

Skills covered

GoAdvancedGoogleProgramming LanguagesSoftware Development

Concepts

Introduction

  • Developing and publishing Go modules
  • What you should know

Getting Started with Go Modules

  • Introduction to Go modules
  • Creating a new Go module
  • Module package organization
  • Adding module packages and source code
  • Testing package source code
  • Documenting module packages

Reusing Module Packages

  • Exported names and import paths
  • Reusing packages within a module
  • Splitting a project into multiple modules
  • Reusing packages in a Go workspace

Publishing Your Go Modules

  • Understanding Go module publishing
  • Preparing your remote repository
  • Preparing the local repository
  • Publishing the module
  • Importing and using the remote module
  • Documenting module repositories
  • Discovering modules on pkg.go.dev

Releasing Versioned Modules

  • Understanding semantic versioning
  • Releasing your first unstable version
  • Releasing your first stable version - v1
  • Experimenting with new features using branches
  • Releasing your first stable version - v1
  • Beyond v1 - Releasing the next major version

Conclusion

  • Next steps
40,000 Toman