mirror of
https://github.com/golang/go
synced 2024-11-13 20:20:30 -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() {}
|