mirror of
https://github.com/golang/go
synced 2024-11-08 19:36:22 -07:00
16 lines
171 B
Go
16 lines
171 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"reflect"
|
||
|
)
|
||
|
|
||
|
type Foo struct {
|
||
|
Bar string `json:"Bar@baz,omitempty"`
|
||
|
}
|
||
|
|
||
|
func F() {
|
||
|
println(reflect.TypeOf(Foo{}).Field(0).Tag)
|
||
|
}
|
||
|
|
||
|
func main() {}
|