Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 523 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 523 Bytes

Open Source API Client

godoc

This package is used to connect and query the Open Source API. This uses the internal data modeling of the API to preform requests over the line.

Example

package main

import (
	"github.com/opensourceorg/api/client"
	"log"
)

func ohshit(err error) {
	if err != nil {
		panic(err)
	}
}

func main() {
	license, err := client.Get("Apache-2.0")
	ohshit(err)
	log.Printf("%s\n", license.Name)
}