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