constant

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:33 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryOp

func BinaryOp(x_ constant.Value, op token.Token, y_ constant.Value) constant.Value

func BitLen

func BitLen(x constant.Value) int

func BoolVal

func BoolVal(x constant.Value) bool

func Bytes

func Bytes(x constant.Value) []byte

func Compare

func Compare(x_ constant.Value, op token.Token, y_ constant.Value) bool

func Denom

func Denom(x constant.Value) constant.Value

func Imag

func Imag(x constant.Value) constant.Value

func Make

func Make(x interface{}) constant.Value

func MakeBool

func MakeBool(b bool) constant.Value

func MakeFromBytes

func MakeFromBytes(bytes []byte) constant.Value

func MakeFromLiteral

func MakeFromLiteral(lit string, tok token.Token, zero uint) constant.Value

func MakeImag

func MakeImag(x constant.Value) constant.Value

func MakeString

func MakeString(s string) constant.Value

func MakeUnknown

func MakeUnknown() constant.Value

func Num

func Real

func Real(x constant.Value) constant.Value

func Shift

func Shift(x constant.Value, op token.Token, s uint) constant.Value

func Sign

func Sign(x constant.Value) int

func StringVal

func StringVal(x constant.Value) string

func ToComplex

func ToComplex(x constant.Value) constant.Value

func ToFloat

func ToFloat(x constant.Value) constant.Value

func ToInt

func ToInt(x constant.Value) constant.Value

func UnaryOp

func UnaryOp(op token.Token, y constant.Value, prec uint) constant.Value

func Val

func Val(x constant.Value) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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