Debian Codegraph @

_test/fun27.go

raw symbols SCIP
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