github

package
v0.0.0-...-77bfbca Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

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

func (Gist) New

func (g Gist) New(fileName string, content string) Gist

Generate a new Gist

type GithubConfig

type GithubConfig struct {
	GithubAPIToken string
}

Jump to

Keyboard shortcuts

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