all: remove usage of constant errors

This commit is contained in:
Aleksandr Razumov
2017-02-11 06:54:37 +03:00
parent 03525bd44e
commit f1b2352162
8 changed files with 46 additions and 61 deletions

View File

@@ -1,14 +1,5 @@
package stun
// Error is error type for constant errors in stun package.
//
// See http://dave.cheney.net/2016/04/07/constant-errors for more info.
type Error string
func (e Error) Error() string {
return string(e)
}
// DecodeErr records an error and place when it is occurred.
type DecodeErr struct {
Place DecodeErrPlace