gist

package
v0.0.0-...-d204e24 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever struct {
	// contains filtered or unexported fields
}

Retriever retrieves Gists and related data from GitHub

func NewRetriever

func NewRetriever(t string) *Retriever

NewRetriever returns a new Retriever

func (*Retriever) RetrieveAll

func (r *Retriever) RetrieveAll() ([]*github.Gist, error)

RetrieveAll retrieves all of the Gists for the authenticated user

func (*Retriever) RetrieveGistFileContent

func (r *Retriever) RetrieveGistFileContent(file *github.GistFile) (string, error)

RetrieveGistFileContent retrieves the contents of a file associated with a Gist

Jump to

Keyboard shortcuts

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