elbuo8 / gost

Simple package to interact with GitHub Gist API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gost

Simple package to interact with GitHub's Gist API.

Installation

go get github.com/elbuo8/gost

Example

gostClient := gost.New("TOKEN")

gist := &gost.GistFile{Filename: "Test.go", Content: "package go"}

_, err := g.Create("SampleFile", false, gist)
if err != nil {
  t.Errorf("%v", err)
}

Contributing

Feel free to submit pull requests after running:

go test

MIT License

About

Simple package to interact with GitHub Gist API


Languages

Language:Go 100.0%