Documentation
¶
Overview ¶
Data types for the Gists
Contains mock data for the Gists view
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExampleGist = Gist{ ID: "example-gist", Slug: "example-gist", Filename: "Example Gist.md", Content: "## Example Gist\n\nThis is an example Gist placeholder.\n\nA list:\n- item 1\n- item 2\n- item 3", AuthorId: "example-author", CreatedAt: time.Now(), }
View Source
var MockGistData = []Gist{
newExampleGist(1),
newExampleGist(2),
newExampleGist(3),
newExampleGist(4),
newExampleGist(5),
newExampleGist(5),
}
Some mock Gist data for the Gists view
Functions ¶
This section is empty.
Types ¶
type Gist ¶
type Gist struct { ID string Slug string Filename string Content string AuthorId string CreatedAt time.Time }
Example structure for a Github Gist. This is just a placeholder
type GithubConfig ¶
type GithubConfig struct {
GithubAPIToken string
}
Click to show internal directories.
Click to hide internal directories.