Skip to content

mrusme/go-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-render

godoc license

Tiny Go library for the Render API.

Installation

go get -u github.com/mrusme/go-render

Getting Started

Listing Services

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))
  }
}