Update API to represent coords as []uint64

This commit is contained in:
Neil Alexander 2019-08-05 10:17:19 +01:00
parent 37533f157d
commit 3a2ae9d902
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
6 changed files with 45 additions and 39 deletions

View file

@ -97,7 +97,7 @@ func Difference(a, b []string) []string {
}
// DecodeCoordString decodes a string representing coordinates in [1 2 3] format
// and returns a []byte.
// and returns a []uint64.
func DecodeCoordString(in string) (out []uint64) {
s := strings.Trim(in, "[]")
t := strings.Split(s, " ")