G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

Make all ginclient functions methods of a client struct #278

Open achilleas-k opened 4 years ago

achilleas-k commented 4 years ago

The ginclient package should have a struct that holds a configuration and implements methods for all the functionality it supports.

As is conventional with Go packages, it could also have top-level equivalent functions that use a default client.

Subtasks: