MCPcopy Index your code
hub / github.com/bytebase/bytebase / NewArraySelector

Function NewArraySelector

backend/plugin/parser/base/json_path.go:80–85  ·  view source on GitHub ↗
(identifier string, index int)

Source from the content-addressed store, hash-verified

78}
79
80func NewArraySelector(identifier string, index int) *ArraySelector {
81 return &ArraySelector{
82 Identifier: identifier,
83 Index: index,
84 }
85}
86func (n *ArraySelector) toString() string {
87 sb := new(strings.Builder)
88 if _, err := sb.WriteString(n.Identifier); err != nil {

Callers 3

mergeSelectorsFunction · 0.92
TestStringFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestStringFunction · 0.68