MCPcopy Index your code
hub / github.com/labstack/echo / tagName

Method tagName

bind.go:160–173  ·  view source on GitHub ↗

tagName returns the field's tag value for the given binding source tag. Keep in sync with the tag fields above and the f.Tag.Get calls in bindMetaFor.

(tag string)

Source from the content-addressed store, hash-verified

158// tagName returns the field's tag value for the given binding source tag.
159// Keep in sync with the tag fields above and the f.Tag.Get calls in bindMetaFor.
160func (m *bindFieldMeta) tagName(tag string) string {
161 switch tag {
162 case "param":
163 return m.param
164 case "query":
165 return m.query
166 case "form":
167 return m.form
168 case "header":
169 return m.header
170 default:
171 return ""
172 }
173}
174
175// bindStructMeta is the cached field metadata for a whole struct type, in declaration order.
176type bindStructMeta struct {

Callers 1

bindDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected