1package datasource23// NewFieldsFromMap returns read-only fields for a map of field names and values.4//5// The map is wrapped as is and not copied, so changes made to it by the caller6// are also visible through the returned fields.7func NewFieldsFromMap(m map[string]any) Fields {8 return fields{values: m}9}1011type fields struct {12 values map[string]any13}1415func (f fields) Has(name string) bool {16 _, found := f.values[name]17 return found18}1920func (f fields) Get(name string) (value any, found bool) {21 value, found = f.values[name]22 return value, found23}24Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.