Documentation
¶
Index ¶
Constants ¶
View Source
const (
XGoPackage = "github.com/goplus/xgo/dql/maps"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeSet ¶
NodeSet represents a set of JSON nodes.
func Source ¶
Source creates a JSON NodeSet from various source types: - string: treats the string as a file path, opens the file, and reads JSON data from it. - []byte: reads JSON data from the byte slice. - io.Reader: reads JSON data from the provided reader. - map[string]any: creates a NodeSet from the provided map. - []any: creates a NodeSet from the provided slice. - Node: creates a NodeSet containing the single provided node. - iter.Seq[Node]: directly uses the provided sequence of nodes. - NodeSet: returns the provided NodeSet as is. If the source type is unsupported, it panics.
Click to show internal directories.
Click to hide internal directories.