Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NoCopy ¶ added in v0.2.0
type NoCopy struct{}
NoCopy may be added to structs which must not be copied after the first use. This is a compile-time safety mechanism to prevent accidental copying of structs that contain resources that should not be duplicated.
See https://golang.org/issues/8005#issuecomment-190753527 for details.
Note that it must not be embedded, due to the Lock and Unlock methods.
Click to show internal directories.
Click to hide internal directories.