To run go-server, type
go run main.go
To run in debugging with (hot-reload),
Add this to ~/.bashrc.
alias air='$(go env GOPATH)/bin/air'
and then install the following go module.
go install github.com/cosmtrek/air@latest
Finally, run using air
command.