2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/vars.go
Hyang-Ah (Hana) Kim 45ed283c80 bind: support exported variables
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>
2015-10-07 20:48:45 +00:00

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{}