Documentation
¶
Overview ¶
expr language support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expr ¶
type Expr[T any] struct { // contains filtered or unexported fields }
func Compile ¶
Compile Expr expression.
If T is map, use CompileEnv instead.
The compiled *Expr can be reused concurrently.
func CompileEnv ¶
Compile Expr expression with Env example.
The compiled *Expr can be reused concurrently.
func MustCompile ¶
Compile Expr expression.
If T is map, use MustCompileEnv instead.
The compiled *Expr can be reused concurrently.
func MustCompileEnv ¶
Compile Expr expression with Env example.
The compiled *Expr can be reused concurrently.
type PooledExpr ¶
type PooledExpr[T any] struct { // contains filtered or unexported fields }
func NewPooledExpr ¶
func NewPooledExpr[T any](cacheSize int) *PooledExpr[T]
Create PooledExpr.
The compiled *PooledExpr can be reused concurrently.
T can be struct or map, but the overall structure must be the same (e.g., map with same kinds of keys).
cacheSize: max number of *Expr in cache.
Click to show internal directories.
Click to hide internal directories.