MCPcopy
hub / github.com/pelletier/go-toml / partString

Method partString

unmarshaler.go:356–361  ·  view source on GitHub ↗

partString returns the name of a path part, interning it when it comes from the document.

(p *pathPart)

Source from the content-addressed store, hash-verified

354// partString returns the name of a path part, interning it when it comes
355// from the document.
356func (d *decoder) partString(p *pathPart) string {
357 if p.node != nil {
358 return d.intern(p.node.Data)
359 }
360 return p.name
361}
362
363// stringMapKey returns a reflect.Value holding the given string, reusing the
364// same allocation every time. The result must be used (the map operation

Callers 2

descendMethod · 0.95
descendStrMapMethod · 0.95

Calls 1

internMethod · 0.95

Tested by

no test coverage detected