value

package
v2.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QualifiedIdentObject

func QualifiedIdentObject(info *types.Info, expr ast.Expr) types.Object

Types

type Value

type Value struct {
	// contains filtered or unexported fields
}

func ProcessValueExpr

func ProcessValueExpr(info *types.Info, expr ast.Expr) (Value, error)

func ProcessValueExprs

func ProcessValueExprs(info *types.Info, args []ast.Expr) ([]Value, error)

func (*Value) Bool

func (vl *Value) Bool() (v bool)

func (*Value) Expr

func (vl *Value) Expr() ast.Expr

func (*Value) Float

func (vl *Value) Float() (v float64)

func (*Value) HasValue

func (vl *Value) HasValue() bool

func (*Value) Int

func (vl *Value) Int() (v int64)

func (*Value) String

func (vl *Value) String() (v string)

func (*Value) Type

func (vl *Value) Type() types.Type

Jump to

Keyboard shortcuts

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