After #16 a package can be created here providing a simple function to resolve locode into a structure similar to the one we have now (with country/continent expanded). This package would embed (https://pkg.go.dev/embed) gzipped files with this data (generated from the Makefile and (unfortunately) stored here) and unpack them on the first access to the DB (https://pkg.go.dev/sync#Once). Then a binary search can be implemented over unpacked data and that's it.
After #16 a package can be created here providing a simple function to resolve locode into a structure similar to the one we have now (with country/continent expanded). This package would embed (https://pkg.go.dev/embed) gzipped files with this data (generated from the Makefile and (unfortunately) stored here) and unpack them on the first access to the DB (https://pkg.go.dev/sync#Once). Then a binary search can be implemented over unpacked data and that's it.