mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Update API to represent coords as []uint64
This commit is contained in:
parent
37533f157d
commit
3a2ae9d902
6 changed files with 45 additions and 39 deletions
|
@ -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, " ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue