I wanted to import a few packages from github in my .go file. So I created a go module using go mod init and then built it using go build. Now when
go mod init
go build