Open xeoncross opened 5 years ago
you should be able to use curl and in doing so execute a bash script or similar to load it.
No reason to execute an external program. As I said, I could create an http.Request
object, start an HTTP server, run the client requests, etc.. all within Go... but why?
If @owlwalks can just change the save()
function to public we won't need workarounds.
It looks like the library implementation for querying records is public - but saving is private. How can I start the server with some seed records without using a separate HTTP client to insert the rules via the HTTP/S interface?