38 lines
335 B
Go
38 lines
335 B
Go
package lib
|
|
|
|
type Type int
|
|
|
|
func (Type) Method(x *int) *int {
|
|
return x
|
|
}
|
|
|
|
func Func() {
|
|
}
|
|
|
|
const Const = 3
|
|
|
|
var Var = 0
|
|
|
|
type Sorter interface {
|
|
Len() int
|
|
Less(i, j int) bool
|
|
Swap(i, j int)
|
|
}
|
|
|
|
type Outer struct {
|
|
A int
|
|
b int
|
|
inner
|
|
}
|
|
|
|
type inner struct {
|
|
C bool
|
|
d string
|
|
recursive
|
|
}
|
|
|
|
type recursive struct {
|
|
E bool
|
|
*inner
|
|
}
|