Boot.Dev course with some exercises
This directory is not a entire project: go build ./... doesn't work It is a collection of exercises that I did from the Boot.Dev course
Hello World
go build -o bootdev ./cmd
go build -o test_basic ./variables/basic.go
./test_basic
go build -o test_balance ./variables/balance.go
./test_balance
# Install
go install github.com/bootdotdev/bootdev@latest
# See bin path
go env GOPATH
# /home/cslog/go
# binary would be in /home/cslog/go/bin
bootdev
Test one file inside directory
go test -v ./interfaces/formatter.go ./interfaces/formatter_test.go
Test one directory (all files)
go test -v ./example/
Test all files
go test -v ./...