api

package
v0.0.0-...-541f7c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 7 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDLength = 9

Functions

This section is empty.

Types

type File

type File struct {
	Filename string
	Content  string
}

type Files

type Files []File

type Gist

type Gist struct {
	Client *github.Client
	Items  []*github.Gist
}

func NewGist

func NewGist(token string) (*Gist, error)

func (*Gist) Create

func (g *Gist) Create(
	files map[github.GistFilename]github.GistFile,
	desc string,
	private bool) (item *github.Gist, err error)

func (*Gist) Delete

func (g *Gist) Delete(id string) (err error)

func (*Gist) Get

func (g *Gist) Get(id string) (item *github.Gist, err error)

func (*Gist) List

func (g *Gist) List() (items Items, err error)

func (*Gist) ListStarred

func (g *Gist) ListStarred() (items []*github.Gist, err error)

func (*Gist) Update

func (g *Gist) Update(id string, files map[github.GistFilename]github.GistFile) (err error)

type Item

type Item struct {
	ID          string
	ShortID     string
	Description string
	Public      bool
	Files       []File
}

type Items

type Items []Item

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL