Gomo - 📐 Simple Golang multi modules tool.

abdfnx

abdfn

Posted on April 23, 2022

Gomo - 📐 Simple Golang multi modules tool.


Gomo

GitHub logo abdfnx / gomo

📐 Simple Golang multi modules tool. inspired from turborepo.

Gomo is a Simple Golang multi modules tool. inspired from turborepo

Installation ⬇

Using script

  • Shell
curl -sL https://bit.ly/gomo-cli | bash
Enter fullscreen mode Exit fullscreen mode
  • PowerShell
iwr -useb https://bit.ly/gomo-win | iex
Enter fullscreen mode Exit fullscreen mode

then restart your powershell

Homebrew

brew install abdfnx/tap/gomo
Enter fullscreen mode Exit fullscreen mode

Usage

  • Creates a new gomo.json file in the current folder
gomo init
Enter fullscreen mode Exit fullscreen mode
  • Initialize a new module
gomo init --mod github.com/x/x2 --path dir
Enter fullscreen mode Exit fullscreen mode
  • Download go packages through all your modules
gomo
Enter fullscreen mode Exit fullscreen mode
  • Get a go package and add it through all modules
gomo get github.com/gorilla/mux
Enter fullscreen mode Exit fullscreen mode
  • Delete a go package through all modules
gomo delete github.com/example/example1
Enter fullscreen mode Exit fullscreen mode
  • Update all packages
gomo update
Enter fullscreen mode Exit fullscreen mode
  • Add any missing packages necessary to build all your modules
gomo tidy
Enter fullscreen mode Exit fullscreen mode

Gomo config file

{
  "cmds": {
    "download": "go mod download",
    "update": "go get -u"
  },
  "modules": [
    ".",
    "test",
    "test/web"
  ]
}
Enter fullscreen mode Exit fullscreen mode

thank you for your time and don't forgot to star the repo if you like it

💖 💪 🙅 🚩
abdfnx
abdfn

Posted on April 23, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related