gist

package
v0.0.0-...-e12b1c0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGist

func GetGist(gistID string) (resp *grequests.Response)

GetGist is get gist to file by gistID

func UploadGist

func UploadGist(name string, path string, public bool) (resp *grequests.Response)

UploadGist is upload file content to gist

Types

type File

type File struct {
	Name    string `json:"filename"`
	Content string `json:"content"`
}

File is gistfile object

type Files

type Files map[string]*File

Files is array of gistfile object

Jump to

Keyboard shortcuts

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