Debian Codegraph @

_test/issue-435.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5 "strconv"
6 )
7
8 type Foo int
9
10 func (f Foo) String() string {
11 return "foo-" + strconv.Itoa(int(f))
12 }
13
14 func print1(arg interface{}) {
15 fmt.Println(arg)
16 }
17
18 func main() {
19 var arg Foo = 3
20 var f = print1
21 f(arg)
22 }
23
24 // Output:
25 // foo-3