Голанг Горутин

func main() {
	wg := sync.WaitGroup{}

	wg.Add(2)

	go TestingOne("hello wordl 1", &wg)
	go TestingTwo("hello wordl 2", &wg)

	wg.Wait()
}

func TestingOne(msg string, wg *sync.WaitGroup) {
	fmt.Println(msg)
	wg.Done()
}

func TestingTwo(msg string, wg *sync.WaitGroup) {
	fmt.Println(msg)
	wg.Done()
}
Restu Wahyu Saputra