github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+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 }