ts

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ident

func Ident(name string) ast.Ident

func Names

func Names(names ...string) ast.Names

func Raw

func Raw(data string) ast.Raw

Types

type Decl

type Decl = ast.Decl

func Export

func Export(decl ast.Decl) Decl

type Expr

type Expr = ast.Expr

func Bool

func Bool(b bool) Expr

func Float

func Float(f float64) Expr

func Int

func Int(i int64) Expr

TODO: replace with generic num?

func List

func List(elems ...Expr) Expr

func Null

func Null() Expr

func Object

func Object(fields map[string]Expr) Expr

func Str

func Str(s string) Expr

func Union

func Union(elems ...Expr) Expr

type File

type File = ast.File

type Node

type Node = ast.Node

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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