Skip to content

Commit

Permalink
Merge pull request #4740 from afbjorklund/lint-template
Browse files Browse the repository at this point in the history
Fix golint complaint about new OutT/ErrT functions
  • Loading branch information
sharifelgamal authored Jul 11, 2019
2 parents 65c6f9e + 2b986ef commit f158c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/minikube/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func OutStyle(style StyleEnum, format string, a ...interface{}) {
Out(outStyled, a...)
}

// OutT writes a stylized and templated message to stdout
func OutT(style StyleEnum, format string, a map[string]interface{}) {
outStyled := applyTemplateFormatting(style, useColor, format, a)
Out(outStyled)
Expand Down Expand Up @@ -94,6 +95,7 @@ func ErrStyle(style StyleEnum, format string, a ...interface{}) {
Err(errStyled, a...)
}

// ErrT writes a stylized and templated error message to stderr
func ErrT(style StyleEnum, format string, a map[string]interface{}) {
errStyled := applyTemplateFormatting(style, useColor, format, a)
Err(errStyled)
Expand Down

0 comments on commit f158c22

Please sign in to comment.