Update golang/go#12475 Change-Id: I7fdc22462b5925c84ebbeb54517032c2fbd0545b Reviewed-on: https://go-review.googlesource.com/15120 Reviewed-by: David Crawshaw <crawshaw@golang.org>
25 lines
528 B
Go
25 lines
528 B
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package basictypes
|
|
|
|
const (
|
|
AString = "a string"
|
|
AnInt = 7
|
|
AnInt2 = 1<<63 - 1
|
|
AFloat = 0.2015
|
|
ARune = rune(32)
|
|
ABool = true
|
|
)
|
|
|
|
func Ints(x int8, y int16, z int32, t int64, u int) {}
|
|
|
|
func Error() error { return nil }
|
|
|
|
func ErrorPair() (int, error) { return 0, nil }
|
|
|
|
func ByteArrays(x []byte) []byte { return nil }
|
|
|
|
func Bool(bool) bool { return true }
|