gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/AnyToStringNameField.go (about) 1 package stringutil 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 func AnyToStringNameField(any interface{}) string { 10 if any == nil { 11 return "" 12 } 13 14 return fmt.Sprintf(constants.SprintPropertyNameValueFormat, any) 15 }