Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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))
}
}
```