I had to do pretty much the same thing in Go for testing my application’s API. I needed to send a RESTful API call to the application server. I built the client with less than 35 lines of Go. It randomly sends an API call every few minutes for 24 hours. and those are easily adjusted to whatever time frames and testing routines I wanted. No 3rd party libs were necessary for the client.
I worked on Java for 20+ years and then switched to Go. Compared to Go, Java is much more verbose and requires a JVM while with Go the necessary code is so much more concise, as in fewer lines, and compiles to a single executable file.