From the error messages in your screenshot, it looks like you may be using an older version of Go, possibly version 1.6.
Please make sure the version of Go you have installed matches the version specified in .go-version.
go version
cd go/src/github.com/elastic/beats
cat .go-version
Both versions should currently be 1.13.7 for the master branch.
If you need to install a newer version of Go, I'd recommend using the gvm project to manage multiple versions of Go.
https://github.com/andrewkroh/gvm