Beego api project

I have been able to create the beego api project. But when I do bee run, it shows the below error:
021/11/27 14:04:51 WARN :arrow_forward: 0001 Running application outside of GOPATH
2021/11/27 14:04:51 INFO :arrow_forward: 0002 Using ‘my_api’ as ‘appname’
2021/11/27 14:04:51 INFO :arrow_forward: 0003 Initializing watcher…
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/config/ini.go:18:2: package bufio is not in GOROOT (/usr/local/go/src/bufio)
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/admin.go:18:2: package bytes is not in GOROOT (/usr/local/go/src/bytes)
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/context/acceptencoder.go:19:2: package compress/flate is not in GOROOT (/usr/local/go/src/compress/flate)
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/context/acceptencoder.go:20:2: package compress/gzip is not in GOROOT (/usr/local/go/src/compress/gzip)
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/context/acceptencoder.go:21:2: package compress/zlib is not in GOROOT (/usr/local/go/src/compress/zlib)
/mnt/data/pkg/mod/github.com/astaxie/beego@v1.12.1/session/sess_mem.go:18:2: package container/list is not in GOROOT (/usr/local/go/src/container/list)
… the list is long…

When I checked usr/local/go it was empty and had nothing. How can I install these packages or any other thing that I might have missed during the installation?