1package parser
2
3import (
4 "fmt"
5)
6
7type ParserError struct {
8 Name string
9 Line uint
10 Msg string
11}
12
13func (p ParserError) Error() string {
14 return fmt.Sprintf("%s:%d %s", p.Name, p.Line, p.Msg)
15}
Small utility for tracking working hours in a plain text file
git clone https://git.8pit.net/tracktime.git
1package parser
2
3import (
4 "fmt"
5)
6
7type ParserError struct {
8 Name string
9 Line uint
10 Msg string
11}
12
13func (p ParserError) Error() string {
14 return fmt.Sprintf("%s:%d %s", p.Name, p.Line, p.Msg)
15}