Lines Matching refs:string
24 func PropertyNameForField(fieldName string) string {
26 propertyName := string(unicode.ToLower(r))
33 func FieldNameForProperty(propertyName string) string {
35 fieldName := string(unicode.ToUpper(r))
42 func HasTag(field reflect.StructField, name, value string) bool {
64 // StringPtr returns a pointer to a new string containing the given value.
65 func StringPtr(s string) *string {
84 // String takes a pointer to a string and returns the value of the string if the pointer is non-nil,
86 func StringDefault(s *string, def string) string {
93 // String takes a pointer to a string and returns the value of the string if the pointer is non-nil,
94 // or an empty string.
95 func String(s *string) string {