☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
map21.go
☽
☼
_test/map21.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
var
m =
map
[
int
]
string
{
4
1
:
"foo"
,
5
}
6
7
func
main() {
8
var
ok
bool
9
if
_, ok = m[
1
]; ok {
10
println(
"ok"
)
11
}
12
}
13
14
// Output:
15
// ok