github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/basictypes.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package basictypes 6 7 const ( 8 AString = "a string" 9 AnInt = 7 10 AnInt2 = 1<<63 - 1 11 AFloat = 0.2015 12 ARune = rune(32) 13 ABool = true 14 ALongString = "LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString,LongString" 15 ) 16 17 func Ints(x int8, y int16, z int32, t int64, u int) {} 18 19 func Error() error { return nil } 20 21 func ErrorPair() (int, error) { return 0, nil } 22 23 func ByteArrays(x []byte) []byte { return nil } 24 25 func Bool(bool) bool { return true }