Go/Golang build error: //go:build comment without // +build comment

Spread the love

At first, check your golang version using go version 


If version is lower than 1.17 – need to to update golang on new version for fix it.

Go to https://go.dev/doc/install and follow instructions for update.

That’s all!)

Leave a Reply