MCPcopy Index your code
hub / github.com/google/go-jsonnet / valueFlatString

Struct valueFlatString

value.go:86–90  ·  view source on GitHub ↗

valueFlatString represents a string value, internally using a []rune for quick indexing.

Source from the content-addressed store, hash-verified

84// valueFlatString represents a string value, internally using a []rune for quick
85// indexing.
86type valueFlatString struct {
87 valueBase
88 // We use rune slices instead of strings for quick indexing
89 value []rune
90}
91
92func (s *valueFlatString) index(i *interpreter, index int) (value, error) {
93 if 0 <= index && index < s.length() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected