Skip to content

Instantly share code, notes, and snippets.

@aligoren
Created June 5, 2022 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aligoren/b73ad5ee3212a0eb5f929c8f21d38bc6 to your computer and use it in GitHub Desktop.
Save aligoren/b73ad5ee3212a0eb5f929c8f21d38bc6 to your computer and use it in GitHub Desktop.
WARNING: DATA RACE
Read at 0x00c00012c078 by goroutine 7:
main.main.func1()
H:/GolandProjects/concurrency_samples/main.go:11 +0x39
Previous write at 0x00c00012c078 by main goroutine:
main.main()
H:/GolandProjects/concurrency_samples/main.go:14 +0x116
Goroutine 7 (running) created at:
main.main()
H:/GolandProjects/concurrency_samples/main.go:10 +0xfa
==================
Number: 2Found 1 data race(s)
exit status 66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment