Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrusme/go-render
Tiny Go client library for the Render.com API
https://github.com/mrusme/go-render
api api-client api-client-go api-clients api-rest client client-library go golang library render render-com tiny
Last synced: 26 days ago
JSON representation
Tiny Go client library for the Render.com API
- Host: GitHub
- URL: https://github.com/mrusme/go-render
- Owner: mrusme
- License: gpl-3.0
- Created: 2022-05-22T18:12:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T14:59:29.000Z (about 2 years ago)
- Last Synced: 2024-10-08T04:51:40.436Z (about 1 month ago)
- Topics: api, api-client, api-client-go, api-clients, api-rest, client, client-library, go, golang, library, render, render-com, tiny
- Language: Go
- Homepage: https://xn--gckvb8fzb.com
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
go-render
=========
[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://pkg.go.dev/github.com/mrusme/go-render) [![license](http://img.shields.io/badge/license-GPLv3-red.svg?style=flat)](https://raw.githubusercontent.com/mrusme/go-render/master/LICENSE)Tiny Go library for the
[Render API](https://api-docs.render.com/reference/introduction).## Installation
```sh
go get -u github.com/mrusme/go-render
```## Getting Started
### Listing Services
```go
package mainimport (
"log"
"encoding/json"
"github.com/mrusme/go-render"
)func main() {
r := render.New("apiKeyHere")services, err := r.ListServices()
if err != nil {
log.Panic(err)
}for _, service := range services {
b, _ := json.MarshalIndent(service, "", " ")
log.Printf("%s\n\n", string(b))
}
}
```