☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
variadic2.go
☽
☼
_test/variadic2.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"fmt"
4
5
func
f(a ...
int
) {
6
if
len(a) >
2
{
7
fmt.
Println
(a[
2
])
8
}
9
}
10
11
func
main() {
12
f(
1
,
2
,
3
,
4
)
13
}
14
15
// Output:
16
// 3