mirror of
https://github.com/golang/go
synced 2024-11-24 22:10:02 -07:00
parent
048ec75801
commit
ae4f1c4c3a
@ -716,7 +716,7 @@ type StructTag string
|
|||||||
// Get returns the value associated with key in the tag string.
|
// Get returns the value associated with key in the tag string.
|
||||||
// If there is no such key in the tag, Get returns the empty string.
|
// If there is no such key in the tag, Get returns the empty string.
|
||||||
// If the tag does not have the conventional format, the value
|
// If the tag does not have the conventional format, the value
|
||||||
// returned by Get is unspecified,
|
// returned by Get is unspecified.
|
||||||
func (tag StructTag) Get(key string) string {
|
func (tag StructTag) Get(key string) string {
|
||||||
for tag != "" {
|
for tag != "" {
|
||||||
// skip leading space
|
// skip leading space
|
||||||
|
Loading…
Reference in New Issue
Block a user