[golang] implement systems and waypoints lookups
This commit is contained in:
parent
d97985a694
commit
66466e161f
10 changed files with 205 additions and 0 deletions
7
golang/pkg/api/utils.go
Normal file
7
golang/pkg/api/utils.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package api
|
||||
|
||||
import "strings"
|
||||
|
||||
func WaypointSymbolToSystemSymbol(symbol string) string {
|
||||
return strings.Join(strings.Split(symbol, "-")[:2], "-")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue