Skip to content

Instantly share code, notes, and snippets.

@thetillhoff
Last active August 29, 2021 22:05
Show Gist options
  • Save thetillhoff/3dbd68234fe21443612d7253b136b2bc to your computer and use it in GitHub Desktop.
Save thetillhoff/3dbd68234fe21443612d7253b136b2bc to your computer and use it in GitHub Desktop.
Go-Cobra Initialize new project - Command order
  1. echo """author: Till Hoffmann name@domain.tld license: MIT """ > ~/.cobra.yaml
  2. cobra init --pkg-name github.com/thetillhoff/name
  3. go mod init github.com/thetillhoff/name
  4. go mod tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment