Documentation ¶ Index ¶ func Main(w io.Writer, args []string) error func Run() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Main ¶ func Main(w io.Writer, args []string) error Main is the main entrypoint to our Grreeting CLI used by the actual main program as a wrapper to faviliate integration testing func Run ¶ func Run() int Run runs the Main entrypoint and returns 1 on error or 0 on success, this is mostly useful to faciliate e2e integration testing of the CLI. It passes `os.Stdout` as the output `io.Writer` and `os.Args[:]` as the args passed to `Main`. Types ¶ This section is empty. Source Files ¶ View all Source files main.go run.go Click to show internal directories. Click to hide internal directories.