Hacker News new | ask | show | jobs
by smasher164 1000 days ago
you stick this in your struct

    type noCopy struct{}
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}