☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
method6.go
☽
☼
_test/method6.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
Sample
struct
{
4
Name
string
5
}
6
7
func
(s
Sample
)
foo
(i
int
) {
8
println(
"in foo"
, s.
Name
, i)
9
}
10
11
var
samples = []
Sample
{
12
Sample
{
"hello"
},
13
}
14
15
func
main() {
16
samples[
0
].
foo
(
3
)
17
}
18
19
// Output:
20
// in foo hello 3