Skip to content

Commit

Permalink
reformat and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Mar 18, 2021
1 parent 1cdfe6a commit 1bf3ac8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ var (
White = color("\033[1;37m%s\033[0m")
)

// color returns a colored string
func color(colorString string) func(...interface{}) string {
sprint := func(args ...interface{}) string {
return fmt.Sprintf(colorString,
fmt.Sprint(args...))
return func(args ...interface{}) string {
return fmt.Sprintf(colorString, fmt.Sprint(args...))
}
return sprint
}

// cliArgs stores parsed query information
Expand Down Expand Up @@ -114,6 +113,7 @@ func main() {
}
}

// Log args if verbose is set
if args.Verbose {
fmt.Printf(Teal("INFO: ")+"%+v\n", args)
}
Expand All @@ -127,6 +127,7 @@ func main() {
log.Fatalf(Teal("INFO: ")+"Cannot create an upstream: %s", err)
}

// Log parsed server address
if args.Verbose {
fmt.Printf(Teal("INFO: ")+"using server %s\n", u.Address())
}
Expand Down

0 comments on commit 1bf3ac8

Please sign in to comment.