Updates and Fixes #2
@@ -8,11 +8,8 @@ import (
|
||||
)
|
||||
|
||||
/*
|
||||
The maths are all thanks to:
|
||||
Xainesworld
|
||||
- YT Channel - https://www.youtube.com/channel/UCzTB8EBVJWkzJi2sQjdBv9g
|
||||
- Video: https://www.youtube.com/watch?v=xmZbkTahw4w
|
||||
- Website: https://www.xainesworld.com/
|
||||
Xainesworld Video: https://www.youtube.com/watch?v=xmZbkTahw4w
|
||||
Fandom Wiki: https://nomanssky.fandom.com/wiki/Portal_address
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -63,7 +60,7 @@ func P2gc(p string) (gc string, err error) {
|
||||
gc = fmt.Sprintf("%04X:%04X:%04X:%04X", coord[3], coord[1], coord[2], coord[0])
|
||||
|
||||
} else { // if len(p) != 12 return an error
|
||||
return "", errors.New("A 12char HEX string is required. example: 006afa556c30")
|
||||
return "", errors.New("a 12char HEX string is required. example: 006afa556c30")
|
||||
}
|
||||
return // return formated string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user