Get the latest tech news

How Go detects struct copies with sync.noCopy


If you have read the source code of the sync package, you may have noticed that several structs contain an unusual field of type noCopy, such as sync.Mutex, …

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of struct copies

struct copies

Photo of sync.noCopy

sync.noCopy