Simple package to interact with GitHub Gist API
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
gost.go
gost_test.go

README.md

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