MCPcopy
hub / github.com/TomWright/dasel / isDaselValue

Method isDaselValue

model/value.go:154–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154func (v *Value) isDaselValue() bool {
155 cur := v.value
156 for cur.Kind() == reflect.Interface && !cur.IsNil() {
157 cur = cur.Elem()
158 }
159 return cur.Type() == reflect.TypeFor[*Value]()
160}
161
162func (v *Value) daselValue() (*Value, error) {
163 if v.isDaselValue() {

Callers 3

SetMethod · 0.95
daselValueMethod · 0.95
UnpackKindsMethod · 0.80

Calls 2

KindMethod · 0.80
TypeMethod · 0.80

Tested by

no test coverage detected