mrxinu / gosolar

A SolarWinds client written in Go.
Apache License 2.0
15 stars 6 forks source link

Simplify umarshalling requests #6

Closed mrxinu closed 2 years ago

mrxinu commented 6 years ago

Since the pattern of querying and then unmarshalling into a struct is common, combine them (optionally?) so it's call like this:

nodes, err := client.Query(query, nil)