Golang one goroutine write, one read, will it also produce static?

problem description

func main() {
    n := 0
    go func() {
        for {
            n = n+1
        }
    }()


    for {
        fmt.Println(n)
    }

}

Why does this situation still lead to competition

Apr.12,2022

n uses the same variable


two goroutine operations on the same variable, of course there will be competition

Menu