MCPcopy Create free account
hub / github.com/araddon/qlbridge / OneOf

Struct OneOf

expr/builtins/filter.go:17–17  ·  view source on GitHub ↗

OneOf choose the first non-nil, non-zero, non-false fields oneof(nil, 0, "hello") => 'hello'

Source from the content-addressed store, hash-verified

15// oneof(nil, 0, "hello") => 'hello'
16//
17type OneOf struct{}
18
19// Type unknown
20func (m *OneOf) Type() value.ValueType { return value.UnknownType }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected