github

package
v1.0.0-rc.92 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGistRequestBody

type CreateGistRequestBody struct {
	Description string                               `json:"description"`
	Public      bool                                 `json:"public"`
	Files       map[string]CreateGistRequestBodyFile `json:"files"`
}

type CreateGistRequestBodyFile

type CreateGistRequestBodyFile struct {
	Content string `json:"content"`
}

type Gist

type Gist struct {
	ID      string `json:"id"`
	HtmlURL string `json:"html_url"`
	Owner   struct {
		Login string `json:"login"`
	} `json:"owner"`
}

type GistClient

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

func NewGistClient

func NewGistClient(token string) GistClient

func (GistClient) CreateGist

func (g GistClient) CreateGist(filename string, content []byte, public bool) (Gist, error)

func (GistClient) PatchGistDescription

func (g GistClient) PatchGistDescription(gistID string, description string) error

Jump to

Keyboard shortcuts

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