- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleStructTag_Lookup (0.69 sec)
-
src/reflect/example_test.go
} s := S{} st := reflect.TypeOf(s) field := st.Field(0) fmt.Println(field.Tag.Get("color"), field.Tag.Get("species")) // Output: // blue gopher } func ExampleStructTag_Lookup() { type S struct { F0 string `alias:"field_0"` F1 string `alias:""` F2 string } s := S{} st := reflect.TypeOf(s) for i := 0; i < st.NumField(); i++ { field := st.Field(i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 20:04:36 UTC 2022 - 4.5K bytes - Viewed (0)