Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownString ¶ added in v1.7.0
Types ¶
type CSVFile ¶ added in v1.11.0
type CSVFile struct {
*git.File
Type string `json:"type"`
Header []string `json:"-"`
Rows [][]string `json:"-"`
}
func (CSVFile) InternalType ¶ added in v1.11.1
type HighlightedFile ¶ added in v1.11.0
type HighlightedFile struct {
*git.File
Type string `json:"type"`
Lines []string `json:"-"`
HTML string `json:"-"`
}
func (HighlightedFile) InternalType ¶ added in v1.11.1
func (r HighlightedFile) InternalType() string
type NonHighlightedFile ¶ added in v1.11.0
func (NonHighlightedFile) InternalType ¶ added in v1.11.1
func (r NonHighlightedFile) InternalType() string
type RenderedFile ¶
type RenderedFile interface {
InternalType() string
}
func RenderFiles ¶ added in v1.11.0
func RenderFiles(files []*git.File) []RenderedFile
type RenderedGist ¶
func HighlightGistPreview ¶
func HighlightGistPreview(gist *db.Gist) (RenderedGist, error)
func MarkdownGistPreview ¶
func MarkdownGistPreview(gist *db.Gist) (RenderedGist, error)
Click to show internal directories.
Click to hide internal directories.