I wish to replicate a python code that does an API call to Splunk in Golang:
import splunklib.client as client
service = client.connect(
host=host,
port=port,
username=username,
password=password,
app=app)
while taking reference from https://godoc.org/github.com/kuba--/splunk#NewClient, this doesn't has the app argument. Can someone pls help me write this code in Golang.
Thanks,
Mukesh Chandak