diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-06 13:49:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-06 13:49:39 +0700 |
| commit | c5cc07900c67c2c8b565758dc4a66bc36b8cd7a9 (patch) | |
| tree | 64e68357c4f0dd8fe239b6918cdcf69dfe284a13 /cli.go | |
| parent | f364f10b8c5c71954d4ceb572cf3b18a61f077e0 (diff) | |
| download | gotp-c5cc07900c67c2c8b565758dc4a66bc36b8cd7a9.tar.xz | |
all: add task linter and fix all warnings
We use revive [1], fieldalignment [2], and shadow [3] as linters.
[1] https://github.com/mgechev/revive
[2] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/fieldalignment/cmd/fieldalignment
[3] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/shadow/cmd/shadow
Diffstat (limited to 'cli.go')
| -rw-r--r-- | cli.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,13 +19,17 @@ import ( "golang.org/x/term" ) +// Readme embed the README.md, rendered in "gotp help". +// //go:embed README.md var Readme string +// Cli define the command line interface for gotp program. type Cli struct { cfg *config } +// NewCli create and initialize new CLI for gotp program. func NewCli() (cli *Cli, err error) { var ( logp = `NewCli` |
