GO-2026-4447 : OpenCloud Affected by Public Link Exploit in github.com/opencloud-eu/opencloud
Discover Packages
github.com/opencloud-eu/opencloud
pkg
ast
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 18, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ast provides available ast nodes.
NodeKey tries to return the node key
func NodeValue(n Node ) interface{}
NodeValue tries to return the node key
type Ast struct {
*Base
Nodes []Node `json:"body"`
}
Ast represents the query - node structure as abstract syntax tree
Base contains shared node attributes
each node should inherit from this
Location is the source location of the Node
BooleanNode represents a bool value
DateTimeNode represents a time.Time value
GroupNode represents a collection of many grouped nodes
type Location struct {
Start Position `json:"start"`
End Position `json:"end"`
Source *string `json:"source,omitempty"`
}
Location represents the location of a node in the AST
type Node interface {
Location() *Location
}
Node represents abstract syntax tree node
OperatorNode represents an operator value like
AND, OR, NOT, =, <= ... and so on
type Position struct {
Line int
Column int
}
Position represents a specific location in the source
StringNode represents a string value
Source Files
¶
Directories
¶
Package test provides shared test primitives for ast testing.
Package test provides shared test primitives for ast testing.
Click to show internal directories.
Click to hide internal directories.