basic types, struct*, interface. TODO: error, non-pointer struct, pointer basic types, slice of bytes. Update golang/go#12475. Change-Id: I5ff91059b1f963b0cadb6f76cb0e12f7b6b98718 Reviewed-on: https://go-review.googlesource.com/15340 Reviewed-by: David Crawshaw <crawshaw@golang.org>
25 lines
302 B
Go
25 lines
302 B
Go
package vars
|
|
|
|
var (
|
|
AString = "String"
|
|
|
|
AnInt = -1
|
|
AnInt8 int8 = 8
|
|
AnInt16 int16 = 16
|
|
AnInt32 int32 = 32
|
|
AnInt64 int64 = 64
|
|
|
|
AFloat = -2.0
|
|
AFloat32 float32 = 32.0
|
|
AFloat64 float64 = 64.0
|
|
|
|
ABool = true
|
|
|
|
AStructPtr *S
|
|
AnInterface I
|
|
)
|
|
|
|
type S struct{}
|
|
|
|
type I interface{}
|