Versions in this module Expand all Collapse all v1 v1.1.0 Feb 24, 2021 v1.0.0 Feb 24, 2021 Changes in this version + const NO_VERSION + var ErrEOL = &ParserError + var ErrHostnameNotFound = &ParserError + var ErrNoSpace = &ParserError + var ErrPriorityEmpty = &ParserError + var ErrPriorityNoEnd = &ParserError + var ErrPriorityNoStart = &ParserError + var ErrPriorityNonDigit = &ParserError + var ErrPriorityTooLong = &ParserError + var ErrPriorityTooShort = &ParserError + var ErrTimestampUnknownFormat = &ParserError + var ErrVersionNotFound = &ParserError + func FindNextSpace(buff []byte, from int, l int) (int, error) + func IsDigit(c byte) bool + func Parse2Digits(buff []byte, cursor *int, l int, min int, max int, e error) (int, error) + func ParseHostname(buff []byte, cursor *int, l int) (string, error) + func ParseVersion(buff []byte, cursor *int, l int) (int, error) + func ShowCursorPos(buff []byte, cursor int) + type Facility struct + Value int + type ParserError struct + ErrorString string + func (err *ParserError) Error() string + type Priority struct + F Facility + P int + S Severity + func NewPriority(p int) *Priority + func ParsePriority(buff []byte, cursor *int, l int) (*Priority, error) + type Severity struct + Value int