github.com/itsabgr/go-handy@v0.0.0-20220724000257-022d51f2b9c6/nocopy.go (about)

     1  package handy
     2  
     3  //NoCopy warns in go vet to struct be copied
     4  type NoCopy Empty
     5  
     6  //Lock does nothing
     7  //go:noinline
     8  func (*NoCopy) Lock() {}
     9  
    10  //Unlock does nothing
    11  //go:noinline
    12  func (*NoCopy) Unlock() {}