blob: f43b5c009e70dd47f853dbcc6ac532113e6cbddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)
}
|