☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
fun27.go
☽
☼
_test/fun27.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
(
4
"fmt"
5
"sync"
6
)
7
8
func
main() {
9
var
wg sync.
WaitGroup
10
wg.
Add
(
1
)
11
go
func
() {
12
defer
wg.
Done
()
13
14
print(
"test"
)
15
}()
16
17
wg.
Wait
()
18
}
19
20
func
print(state
string
) {
21
fmt.
Println
(state)
22
}
23
24
// Output:
25
// test