Categorygithub.com/allanShady/go-cli-experiments
modulepackage
0.0.0-20210913101247-52584793c5fe
Repository: https://github.com/allanshady/go-cli-experiments.git
Documentation: pkg.go.dev

# README

go-cli-experiments

setup

  • setup $ROOT and $GOPATH environment variables
    export GOPATH=$HOME/go
    export GOBIN=$GOPATH/bin
    export PATH=${PATH}:$GOBIN:$GOROOT/bin
  • init cli module go mod init github.com/allanShady/go-cli-experiments
  • Install cobra go get -u github.com/spf13/cobra/cobra to bin path
  • get viper go get github.com/spf13/[email protected]
  • add get cobra add get
  • using task file:
    • task build
    • task run
    • task clean

# Packages

Copyright © 2021 NAME HERE <EMAIL ADDRESS> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.