Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unlisted Visibility = "unlisted" Public = "public" Private = "private" )
View Source
const ApiUrl = "https://paste.sr.ht/api"
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(name string, visibility Visibility, contents string)
Types ¶
type Blob ¶
type Blob struct { Filename string // No JSON field, have to set this manually ID string `json:"sha"` Contents string `json:"contents"` }
This is the structure for paste loading from the API
type Paste ¶
type Visibility ¶
type Visibility string
Click to show internal directories.
Click to hide internal directories.