GoDoxy/internal/utils/nocopy.go

8 lines
189 B
Go

package utils
// empty struct that implements Locker interface
// for hinting that no copy should be performed.
type NoCopy struct{}
func (*NoCopy) Lock() {}
func (*NoCopy) Unlock() {}