aboutsummaryrefslogtreecommitdiffstats
path: root/formats/pktline/decoder.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-05-19 16:44:59 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-05-19 16:44:59 +0200
commit25077df01588b54ec097ce3f99db6672c5a59463 (patch)
tree49f7b64f4164d19260ba848c5faca366b75438d1 /formats/pktline/decoder.go
parent08f9e7015aad2ca768638b446fb8632f11601899 (diff)
downloadgo-git-25077df01588b54ec097ce3f99db6672c5a59463.tar.gz
documentation
Diffstat (limited to 'formats/pktline/decoder.go')
-rw-r--r--formats/pktline/decoder.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/formats/pktline/decoder.go b/formats/pktline/decoder.go
index c30be6b..34e6f51 100644
--- a/formats/pktline/decoder.go
+++ b/formats/pktline/decoder.go
@@ -7,9 +7,12 @@ import (
)
var (
- ErrUnderflow = errors.New("unexpected string length (underflow)")
+ // ErrUnderflow is triggered when a line is shorter than the described length
+ ErrUnderflow = errors.New("unexpected string length (underflow)")
+ // ErrInvalidHeader invalid pktline header
ErrInvalidHeader = errors.New("invalid header")
- ErrInvalidLen = errors.New("invalid length")
+ // ErrInvalidLen ivanlid line length found, < 0
+ ErrInvalidLen = errors.New("invalid length")
)
// Decoder implements a pkt-line format decoder