MCPcopy
hub / github.com/danielgtaylor/huma / Push

Method Push

validate.go:83–89  ·  view source on GitHub ↗

Push an entry onto the path, adding a `.` separator as needed. pb.Push("foo") // foo pb.Push("bar") // foo.bar

(s string)

Source from the content-addressed store, hash-verified

81// pb.Push("foo") // foo
82// pb.Push("bar") // foo.bar
83func (b *PathBuffer) Push(s string) {
84 if len(b.buf) > 0 {
85 b.buf = append(b.buf, '.')
86 }
87 b.buf = append(b.buf, s...)
88 b.off = len(b.buf)
89}
90
91// PushIndex pushes an entry onto the path surrounded by `[` and `]`.
92//

Callers 9

WithMethod · 0.95
BenchmarkPathBufferFunction · 0.95
validateDiscriminatorFunction · 0.80
handleMapStringFunction · 0.80
handleMapAnyFunction · 0.80
everyPBMethod · 0.80
RegisterFunction · 0.80
setDeepObjectValueFunction · 0.80

Calls

no outgoing calls