Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 914 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 914 Bytes

Servers.com go client

Test GoDoc

serverscom-go-client is a Go client library for accessing the Servers.com API

Development status

Unstable, in development

Example

client := serverscom.NewClient("my-jwt-token")

hosts, err := client.Hosts.Collection().Collect()
if err != nil {
  panic(err.Error())
}

for h, i := range hosts {
  log.Println(fmt.Sprintf("Host: %s, with title: %s, private ipv4: %s, public ipv4: %s", h.ID, h.Title, h.PrivateIPv4Address, h.PublicIPv4Address))
}

Copyright

The library is available as open source under the terms of the MIT License.