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
|
|
}
|