2016-09-08 16:11:20 +00:00
|
|
|
package pkg
|
|
|
|
|
|
|
|
type SomeType struct {
|
|
|
|
X float64
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *SomeType) AMethod(x int) int {
|
|
|
|
return x + 3
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *SomeType) AnotherMethod(x int) int {
|
|
|
|
return x + 4
|
|
|
|
}
|
2017-04-25 17:42:41 +00:00
|
|
|
|
|
|
|
var SomeVar SomeType
|
2018-03-17 10:14:34 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
SomeConst int = 2
|
|
|
|
)
|