internal

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayLit

func ArrayLit(exprs []ast.Expr) *ast.ArrayLiteral

func BoolLit

func BoolLit(v bool) *ast.BoolLiteral

func BytesLit

func BytesLit(v []byte) *ast.BytesLiteral

func DateLit

func DateLit(v civil.Date) *ast.DateLiteral

func FloatLit

func FloatLit(v float64) *ast.FloatLiteral

func IntLit

func IntLit(v int64) *ast.IntLiteral

func NullLit

func NullLit() *ast.NullLiteral

func StringLit

func StringLit(v string) *ast.StringLiteral

func TimeLit

func TimeLit(v time.Time) *ast.TimestampLiteral

func ToExpr

func ToExpr(val interface{}) (ast.Expr, error)

Types

type ASTExpr

type ASTExpr interface {
	ToASTExpr() (ast.Expr, error)
}

ASTExpr is a type that can be converted into ast.Expr.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL