We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267f5f0 commit fcbf9ecCopy full SHA for fcbf9ec
1 file changed
helpers.go
@@ -121,7 +121,10 @@ func GetType(myvar interface{}) string {
121
122
// F : fmt.Sprintf
123
func F(format string, args ...interface{}) string {
124
- return fmt.Sprintf(format, args...)
+ if len(args) > 0 {
125
+ return fmt.Sprintf(format, args...)
126
+ }
127
+ return format
128
}
129
130
// M : return map[string]interface from args
0 commit comments