Summary
You have now created your first Go module, initialized your first go.mod
file, created a Go program, run the Go program with go run
, and built a Go executable for your OS. This chapter has left you with the necessary skills to create a basic Go module and the basic knowledge of the Go command-line tool required to both run a Go package and build a Go program. These are used every day in the life of a Go developer.
In the next chapter, we're going to cover the basics of the Go language, including how packages work, testing, and many more essentials.