Gomo is a Simple Golang multi modules tool.
Installation ⬇
Using script
curl -sL https://bit.ly/gomo-cli | bash
iwr -useb https://bit.ly/gomo-win | iex
then restart your powershell
Homebrew
brew install abdfnx/tap/gomo
Usage
- Creates a new gomo.json file in the current folder
gomo init
- Download go packages through all your modules
gomo
- Get a go package and add it through all modules
gomo get github.com/gorilla/mux
- Delete a go package through all modules
gomo delete github.com/example/example1
gomo update
- Add any missing packages necessary to build all your modules
gomo tidy
Gomo config file
{
"cmds": {
"download": "go mod download",
"update": "go get -u"
},
"modules": [
".",
"test",
"test/web"
]
}
Technologies Used in Tran
License
gomo is licensed under the terms of MIT license.