1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 19:58:37 -04:00

cmd/ofx: golint

This commit is contained in:
2017-04-16 20:50:06 -04:00
parent 33c7ad463c
commit 94f49640b4
11 changed files with 23 additions and 25 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/howeyc/gopass"
)
type Command struct {
type command struct {
Name string
Description string
Flags *flag.FlagSet
@ -14,7 +14,7 @@ type Command struct {
Do func() // Run the command (only called if CheckFlags returns true)
}
func (c *Command) Usage() {
func (c *command) usage() {
fmt.Printf("Usage of %s:\n", c.Name)
c.Flags.PrintDefaults()
}