IMHO, one of the best ways to create a Go CLI is to start with this awesome library: https://github.com/alexflint/go-arg

Most popular Go CLIs use https://github.com/spf13/cobra

i.e. Docker / K8s / OpenFaaS and similar