select remote repository and exec go mod init
this tool uses git remote -v
and go mod init
.
$ gomodinit
? repository:
▸ github.com/nu50218/gomodinit
→
$ gomodinit
✔ github.com/nu50218/gomodinit
--
$ go mod init github.com/nu50218/gomodinit
go: creating new go.mod: module github.com/nu50218/gomodinit
--
$ go get -u github.com/nu50218/gomodinit
$ gomodinit