github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+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 }