diff options
| author | John Jeffery <jjeffery@sp.com.au> | 2016-03-20 20:24:12 +1000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-03-25 04:54:19 +0000 |
| commit | 5c8674a497724f509737a3523e7c2ddf94e3a72b (patch) | |
| tree | 31bb815ce1beff55f7184db7690d0e901f8c99f3 /src/cmd/api | |
| parent | 139fad21b937dc0b405d243e3abe33429890947f (diff) | |
| download | go-5c8674a497724f509737a3523e7c2ddf94e3a72b.tar.xz | |
reflect: add method StructTag.Lookup
The Lookup method provides a way to extract a tag value, while
determining whether the tag key exists in the struct field's tag.
Fixes #14883
Change-Id: I7460cb68f0ca1aaa025935050b9e182efcb64db3
Reviewed-on: https://go-review.googlesource.com/20864
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions
