github.com/loafoe/cli@v7.1.0+incompatible/command/translatableerror/three_required_arguments_error.go (about) 1 package translatableerror 2 3 type ThreeRequiredArgumentsError struct { 4 ArgumentName1 string 5 ArgumentName2 string 6 ArgumentName3 string 7 } 8 9 func (ThreeRequiredArgumentsError) DisplayUsage() {} 10 11 func (ThreeRequiredArgumentsError) Error() string { 12 return "Incorrect Usage: the required arguments `{{.ArgumentName1}}`, `{{.ArgumentName2}}`, and `{{.ArgumentName3}}` were not provided" 13 } 14 15 func (e ThreeRequiredArgumentsError) Translate(translate func(string, ...interface{}) string) string { 16 return translate(e.Error(), map[string]interface{}{ 17 "ArgumentName1": e.ArgumentName1, 18 "ArgumentName2": e.ArgumentName2, 19 "ArgumentName3": e.ArgumentName3, 20 }) 21 }