Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Closed bool GistResponse map[string]interface{} GithubToken string HomeDir = getHome() Instructions []Lines )
Setting storage.
View Source
var ( AblyToken = "Yn3xbQ.W4fPqA:_aZ8tpIGEPJXscWv" Application = "termbacktime" GistAPI = "https://api.github.com/gists" PlaybackURL = "https://termbackti.me" Revision = "0000000" Version = "0.0.0" ConfigType = "json" )
Export default compile settings.
Functions ¶
Types ¶
type Gist ¶
type Gist struct { Description string `json:"description,omitempty"` Public bool `json:"public,omitempty"` GistFile map[string]GistFile `json:"files,omitempty"` }
Gist is the required structure for POST data for API purposes
type GistFile ¶
type GistFile struct {
Content string `json:"content"`
}
GistFile is the top-level struct for a gist file
Click to show internal directories.
Click to hide internal directories.