stun/fingerprint_debug.go
Steffen Vogel bf4ac4562f Use new build tag syntax
Use new build tag syntax
2023-01-25 13:17:01 +01:00

20 lines
303 B
Go

//go:build debug
// +build debug
package stun
import "fmt"
// CRCMismatch represents CRC check error.
type CRCMismatch struct {
Expected uint32
Actual uint32
}
func (m CRCMismatch) Error() string {
return fmt.Sprintf("CRC mismatch: %x (expected) != %x (actual)",
m.Expected,
m.Actual,
)
}