Skip to content

Commit bd00492

Browse files
author
Jérôme Renard
committed
Moved function declaration
1 parent a7fb955 commit bd00492

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

syslogparser.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ type ParserError struct {
3838
ErrorString string
3939
}
4040

41-
func (err *ParserError) Error() string {
42-
return err.ErrorString
43-
}
44-
4541
type Priority struct {
4642
P int
4743
F Facility
@@ -202,3 +198,7 @@ func showCursorPos(buff []byte, cursor int) {
202198
padding := strings.Repeat("-", cursor)
203199
fmt.Println(padding + "↑\n")
204200
}
201+
202+
func (err *ParserError) Error() string {
203+
return err.ErrorString
204+
}

0 commit comments

Comments
 (0)