blob: 67a0ed9a4f32b8d99c57a7ca9f25e42f865c5339 [file]
package foo
import (
"time"
"url"
)
const (
A = 1
a = 11
A64 int64 = 1
)
const (
ConversionConst = MyInt(5)
)
var ChecksumError = errors.New("gzip checksum error")
const B = 2
const StrConst = "foo"
const FloatConst = 1.5
type myInt int
type MyInt int
type S struct {
Public *int
private *int
PublicTime time.Time
}
type EmbedURLPtr struct {
*url.URL
}
type S2 struct {
S
Extra bool
}
var X int64
var (
Y int
X I // todo: resolve this to foo.I? probably doesn't matter.
)
type I interface {
Set(name string, balance int64)
Get(string) int64
GetNamed(string) (balance int64)
private()
}
func (myInt) privateTypeMethod() {}
func (myInt) CapitalMethodUnexportedType() {}
func (s *S2) SMethod(x int8, y int16, z int64) {}
type s struct{}
func (s) method()
func (s) Method()
func (S) StructValueMethod()
func (ignored S) StructValueMethodNamedRecv()
func (s *S2) unexported(x int8, y int16, z int64) {}
func Bar(x int8, y int16, z int64) {}
func Bar1(x int8, y int16, z int64) uint64 {}
func Bar2(x int8, y int16, z int64) (uint8, uint64) {}
func unexported(x int8, y int16, z int64) {}
func TakesFunc(f func(dontWantName int) int)
type Codec struct {
Func func(x int, y int) (z int)
}
type SI struct {
I int
}
var SIVal = SI{}
var SIPtr = &SI{}
var SIPtr2 *SI
type T struct {
common
}
type B struct {
common
}
type common struct {
i int
}
type TPtrUnexported struct {
*common
}
type TPtrExported struct {
*Embedded
}
type Embedded struct{}
func (*Embedded) OnEmbedded() {}
func (*T) JustOnT() {}
func (*B) JustOnB() {}
func (*common) OnBothTandBPtr() {}
func (common) OnBothTandBVal() {}
type EmbedSelector struct {
time.Time
}