2018-02-24 09:06:48 +00:00
|
|
|
package foo
|
|
|
|
|
|
|
|
// NewBar return an integer \o/
|
|
|
|
func NewBar() int {
|
|
|
|
return 10
|
|
|
|
}
|
2020-07-29 14:20:00 +00:00
|
|
|
|
2022-08-04 14:47:32 +00:00
|
|
|
// Dummy is dummy variable.
|
2021-05-25 13:17:40 +00:00
|
|
|
var Dummy = 1
|
|
|
|
|
2020-07-29 14:20:00 +00:00
|
|
|
// Foo is a type.
|
|
|
|
type Foo struct{}
|
|
|
|
|
|
|
|
// Bar is a function.
|
|
|
|
func Bar() int {
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bar is a method.
|
|
|
|
func (f Foo) Bar() int {
|
|
|
|
return 8
|
|
|
|
}
|