Sobes.tech
Junior — Senior

What output will we get when running program №60

livecode

Task condition

Let's analyze what text will be printed to the console after executing the following Go program:

import ("fmt"
        "time")

func main() {
    {
        sharedMap := make(map[int]bool)
        go func() {
            sharedMap[1] = true
        }()
        go func() {
            sharedMap[1] = true
        }()
        go func() {
            sharedMap[1] = false
        }()
        
        time.Sleep(1 * time.Second)
        fmt.Println("%v", sharedMap[1])
    }
}

Question: what value will be displayed on the screen?