xstrings

package
v0.0.0-...-ea65422 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncorrectStmts = errors.New("incorrect statements")
	ErrIncorrectDecl  = errors.New("incorrect declaration")
	ErrIncorrectExpr  = errors.New("incorrect expration")
)

Functions

func FromNode

func FromNode(n ast.Node) string

func ToDecl

func ToDecl(s string) ([]ast.Decl, error)

func ToExpr

func ToExpr(s string) (ast.Expr, error)

func ToStmts

func ToStmts(s string) ([]ast.Stmt, error)

func ToStmtsWithFileSet

func ToStmtsWithFileSet(s string, fset *token.FileSet) ([]ast.Stmt, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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