gogetter

command module
v0.0.0-...-64fa9a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2020 License: GPL-2.0 Imports: 1 Imported by: 0

README

GoGetter

Tool to quickly create go projects and install multiple go packages

Install

Tested only on Mac for now. Will be testing on Linux and windows. GOBIN=/usr/local/bin go install

Future Installs will hopefully be throuhg homebrew (mac), pacman/apt (linux) and chocolatey (windows)

Basic Usage

  gogetter mk <project-name>  -u <username>  
  cd <project-name>
  gogetter <enter multiple packages space seperated>....

Default settings

  • By default it will create a git repo you can set this to false by using the git flag -git=false.
  • It will create a main.go by default. I plan on adding basic templates. Inspired by express generator. So eventually it would be able to have a type flag and then create the desired folder structures with base files. Examples -t=rest-web-service -t=proto-web-service -t=cli-tool. Open to prs of differnt templates when that feature is implemented.
  • Gogetter uses go modules so it will by default it will use the module naming convention "github.com//" if supplied a username. If no username is supplies it will just uset the has the package name.
  • If you would like to specify a different domain you can use the -d flag and set the domain. Ex gogetter mk coolproject -u goku -d google.com the package name will be pacakge google.com/goku/coolproject

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
template command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL