https://github.com/serverscom/serverscom-go-client
Go Client for Servers.com's Public API
https://github.com/serverscom/serverscom-go-client
Last synced: 5 months ago
JSON representation
Go Client for Servers.com's Public API
- Host: GitHub
- URL: https://github.com/serverscom/serverscom-go-client
- Owner: serverscom
- License: mit
- Created: 2020-05-07T09:53:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-21T15:07:18.000Z (5 months ago)
- Last Synced: 2026-01-22T01:28:32.502Z (5 months ago)
- Language: Go
- Size: 1.2 MB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Servers.com go client

[](https://godoc.org/github.com/serverscom/serverscom-go-client/pkg)
serverscom-go-client is a Go client library for accessing the [Servers.com API](https://developers.servers.com/api-documentation/v1/)
## Development status
Unstable, in development
## Example
```go
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](http://opensource.org/licenses/MIT).