# version >= 1.13
go version
go get golang.org/x/tools/cmd/goimports
go get -u github.com/rakyll/gotest
# extension id golang.go
code --install-extension golang.go
fmt code
bash ./script/unix/fmt.bash
./script/linux/fmt.bash
build mp0 static binary to ./bin
bash ./script/unix/mp0/build.bash
./script/linux/mp0/build.sh
# just stderr
mp0-s 8080 1> /dev/null
# just stdout
mp0-s 8080 2> /dev/null
Find this list of possible platforms
go tool dist list
test Spec
gotest -mod vendor -v ./<>
test All
gotest -mod vendor -v ./...
trace log
LOG=trace
json log
LOG=json