Documentation
¶
Overview ¶
Package interptest holds Go functions that the interpreter tests run two times: as compiled code and as interpreted code. Each function takes no argument and returns a value that the test compares.
Index ¶
- Constants
- Variables
- func Arithmetic() string
- func Calls() string
- func Closures() string
- func Control() string
- func Conversions() string
- func Literals() string
- func Methods() string
- func Ranges() string
- func Strings() string
- func Table() *interp.Table
- func Variables() string
- type Builder
- type Item
- type Kind
- type Render
- type Shape
- type Square
Constants ¶
const Limit = 3
Limit is an untyped constant.
const Scale float64 = 1.5
Scale is a typed constant.
Variables ¶
var Counter = 10
Counter is a package variable that a sample changes.
Functions ¶
func Arithmetic ¶
func Arithmetic() string
func Conversions ¶
func Conversions() string
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder collects text, as the node builder of a template does.
type Item ¶
Item is a row of the samples.