- Learning Functional Programming in Go
- Lex Sheehan
- 163字
- 2021-07-02 23:13:54
Quick look at the Dot Init update
This is what our terminal looks like using the Dot Init toolset:
Dot Init makes it simpler and requires less typing to achieve the same result. That's a win-win situation.
When I originally wrote this chapter, I used the standard go get, go build, and go run main.go commands. As the projects became more complicated (requiring more third-party dependencies), I found it helpful to create the Dot Init tool. Later, I returned to all the projects and simplified them using the Dot Init tool. Feel free to use any dependency management tool and build and run your Go applications as you prefer. That's one of the great things about Go. As long as tool makers adhere to standard Go conventions, such as using the GOPATH, and not break other Go tools, such as go test, go doc, and go vet, it's all good. I prefer simple, yet powerful (Dot Init).