- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for StructTag (0.37 sec)
-
schema/utils.go
} } return } func removeSettingFromTag(tag reflect.StructTag, names ...string) reflect.StructTag { for _, name := range names { tag = reflect.StructTag(regexp.MustCompile(`(?i)(gorm:.*?)(`+name+`(:.*?)?)(;|("))`).ReplaceAllString(string(tag), "${1}${5}")) } return tag } func appendSettingFromTag(tag reflect.StructTag, value string) reflect.StructTag { t := tag.Get("gorm") if strings.Contains(t, value) { return tag
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Sat Aug 19 13:35:14 GMT 2023 - 5.5K bytes - Viewed (0) -
schema/utils_test.go
} for k, v := range tags { if string(removeSettingFromTag(reflect.StructTag(k), "column")) != v { t.Errorf("%v after removeSettingFromTag should equal %v, but got %v", k, v, removeSettingFromTag(reflect.StructTag(k), "column")) } }
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Jul 31 10:19:25 GMT 2020 - 1.5K bytes - Viewed (0) -
api/go1.7.txt
pkg os/user, type Group struct, Name string pkg os/user, type UnknownGroupError string pkg os/user, type UnknownGroupIdError string pkg reflect, func StructOf([]StructField) Type pkg reflect, method (StructTag) Lookup(string) (string, bool) pkg runtime, func CallersFrames([]uintptr) *Frames pkg runtime, func KeepAlive(interface{}) pkg runtime, func SetCgoTraceback(int, unsafe.Pointer, unsafe.Pointer, unsafe.Pointer)
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Jun 28 15:08:11 GMT 2016 - 13.6K bytes - Viewed (0) -
schema/field.go
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 32K bytes - Viewed (1) -
doc/go1.17_spec.html
which becomes an attribute for all the fields in the corresponding field declaration. An empty tag string is equivalent to an absent tag. The tags are made visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a> and take part in <a href="#Type_identity">type identity</a> for structs but are otherwise ignored. </p> <pre> struct {
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
which becomes an attribute for all the fields in the corresponding field declaration. An empty tag string is equivalent to an absent tag. The tags are made visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a> and take part in <a href="#Type_identity">type identity</a> for structs but are otherwise ignored. </p> <pre> struct {
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 00:39:16 GMT 2024 - 279.6K bytes - Viewed (0) -
api/go1.txt
pkg reflect, type StructField struct, Offset uintptr pkg reflect, type StructField struct, PkgPath string pkg reflect, type StructField struct, Tag StructTag pkg reflect, type StructField struct, Type Type pkg reflect, type StructTag string pkg reflect, type Type interface, Align() int pkg reflect, type Type interface, AssignableTo(Type) bool pkg reflect, type Type interface, Bits() int
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)