mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-29 09:27:36 +00:00
1d6d7206e9
Don't count `string(data)` or `[]byte(data)` as function calls.
22 lines
268 B
Go
22 lines
268 B
Go
package foo
|
|
|
|
// NewBar return an integer \o/
|
|
func NewBar() int {
|
|
return 10
|
|
}
|
|
|
|
// Dummy is dummy constant.
|
|
var Dummy = 1
|
|
|
|
// 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
|
|
}
|