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

Method Interface

model/value.go:174–179  ·  view source on GitHub ↗

Interface returns the value as an interface.

()

Source from the content-addressed store, hash-verified

172
173// Interface returns the value as an interface.
174func (v *Value) Interface() any {
175 if v.IsNull() {
176 return nil
177 }
178 return v.value.Interface()
179}
180
181// Kind returns the reflect kind of the value.
182func (v *Value) Kind() reflect.Kind {

Callers 8

stringMethod · 0.95
daselValueMethod · 0.80
GetSliceIndexMethod · 0.80
dencodingMapValueMethod · 0.80
TestValue_InterfaceFunction · 0.80
WriteMethod · 0.80
buildGoValueForMapFunction · 0.80
goTypeAndValueFunction · 0.80

Calls 1

IsNullMethod · 0.95

Tested by 1

TestValue_InterfaceFunction · 0.64