mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
a781d299e0
Function name now consists of 3 parts: 1) full package path 2) method receiver type (if any) 3) function name itself . Fix #1150. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
19 lines
225 B
Go
19 lines
225 B
Go
package foo
|
|
|
|
// NewBar return an integer \o/
|
|
func NewBar() int {
|
|
return 10
|
|
}
|
|
|
|
// 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
|
|
}
|