☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
closure4.go
☽
☼
_test/closure4.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
T1
struct
{
4
Name
string
5
}
6
7
func
(t *
T1
)
genAdd
(k
int
)
func
(
int
)
int
{
8
return
func
(i
int
)
int
{
9
println(t.
Name
)
10
return
i + k
11
}
12
}
13
14
var
t =
T1
{
"test"
}
15
16
func
main() {
17
f := t.
genAdd
(
4
)
18
println(f(
5
))
19
}
20
21
// Output:
22
// test
23
// 9