Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,31 @@ | ||
Open Source API Client | ||
====================== | ||
|
||
[godoc](https://godoc.org/github.com/OpenSourceOrg/api/client) | ||
|
||
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 | ||
------- | ||
|
||
```go | ||
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) | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters