Skip to content

serverscom/serverscom-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Go Client for Servers.com's Public API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages