package source import "fmt" type Loc struct { Row int Col int } func NewLoc(row, col int) Loc { return Loc{row, col} } func (l Loc) String() string { return fmt.Sprintf("%d:%d", l.Row+1, l.Col) }