blob: ad2df6cc7c7e74f388da964af36c50321471e91c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package main
import (
"reflect"
)
type Foo struct {
Bar string `json:"Bar@baz,omitempty"`
}
func F() {
println(reflect.TypeOf(Foo{}).Field(0).Tag)
}
func main() {}
|