github.com/anacrolix/torrent@v1.61.0/errors.go (about)

     1  package torrent
     2  
     3  // I don't trust errors.New with allocations, and I know I can use unique.Handle if I get desperate.
     4  type stringError string
     5  
     6  func (e stringError) Error() string {
     7  	return string(e)
     8  }