MCPcopy Create free account
hub / github.com/cockroachdb/swiss / noCopy

Struct noCopy

map.go:1707–1707  ·  view source on GitHub ↗

noCopy may be added to structs which must not be copied after the first use. See https://golang.org/issues/8005#issuecomment-190753527 for details. Note that it must not be embedded, due to the Lock and Unlock methods.

Source from the content-addressed store, hash-verified

1705//
1706// Note that it must not be embedded, due to the Lock and Unlock methods.
1707type noCopy struct{}
1708
1709// Lock is a no-op used by -copylocks checker from `go vet`.
1710func (*noCopy) Lock() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected