nocopy

package
v0.0.0-...-196191e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoCopy

type NoCopy struct{}

NoCopy embed this type into a struct, which mustn't be copied, so `go vet` gives a warning if this struct is copied.

See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details. and also: https://stackoverflow.com/questions/52494458/nocopy-minimal-example

func (*NoCopy) Lock

func (*NoCopy) Lock()

Lock is a no-op implementation of the sync.Locker interface.

func (*NoCopy) Unlock

func (*NoCopy) Unlock()

Unlock is a no-op implementation of the sync.Locker interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL