An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
April 23, 2022 06:38 pm GMT
Original Link: https://dev.to/abdfnx/gomo-simple-golang-multi-modules-tool-plk
Gomo - Simple Golang multi modules tool.
Gomo is a Simple Golang multi modules tool. inspired from turborepo
Installation
Using script
- Shell
curl -sL https://bit.ly/gomo-cli | bash
- PowerShell
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
- Initialize a new module
gomo init --mod github.com/x/x2 --path dir
- 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
- Update all packages
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" ]}
Original Link: https://dev.to/abdfnx/gomo-simple-golang-multi-modules-tool-plk
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To