go version
go mod init {location}/{moduleName}
ex:
go mod init github.com/mymodule
go run .
go build
- Look packages on pkg.go.dev
go mod tidy
go mod edit -replace {location}/{moduleName}={fisicalLocation}
ex:
go mod edit -replace example.com/greetings=../greetings
- Create test file that end with
_test.go
- Create test functions that start with
Test
- Run test
go test
or
go test -v