objutil/tag.go
func ParseTagJSON(s string) Tag {
	var name string
	var omitempty bool

	name, s = parseNextTagToken(s)

	for len(s) != 0 {
		var token string
		switch token, s = parseNextTagToken(s); token {
		case "omitempty":
			omitempty = true
		}
	}

	return Tag{
		Name:      name,
		Omitempty: omitempty,
	}
}
func ParseTagJSON(s string) Tag {
	var name string
	var omitempty bool

	name, s = parseNextTagToken(s)

	for len(s) != 0 {
		var token string
		switch token, s = parseNextTagToken(s); token {
		case "omitempty":
			omitempty = true
		}
	}

	return Tag{
		Name:      name,
		Omitempty: omitempty,
	}
}
// ParseTagJSON is similar to ParseTag but only supports features supported by
// the standard encoding/json package.