github.com/sleungcy/cli@v7.1.0+incompatible/command/translatableerror/translatable_error.go (about) 1 package translatableerror 2 3 //go:generate counterfeiter . TranslatableError 4 5 // TranslatableError it wraps the error interface adding a way to set the 6 // translation function on the error 7 type TranslatableError interface { 8 // Returns the untranslated error string 9 Error() string 10 Translate(func(string, ...interface{}) string) string 11 }