This commit is contained in:
shoopea
2023-06-29 22:58:24 +02:00
parent fb02d525d2
commit 35e234533c
18 changed files with 1646 additions and 1441 deletions

View File

@@ -1,20 +1 @@
package main
import "strings"
type Location string
func (l Location) Box() string {
s := strings.Split(string(l), `:`)
return s[0]
}
func (l Location) Path() string {
s := strings.Split(string(l), `:`)
return s[1]
}
func (l Location) Valid() bool {
s := strings.Split(string(l), `:`)
return len(s) == 2
}