For fun to learn golang I made utility code to execute the query from a text file. It will use credentials or an auth token. Results are simply written to a file as unmodified JSON. it’s not an SDK but serviceable code
https://github.com/georgestarcher/querysplunk