model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComicInfo added in v1.1.0

type ComicInfo struct {
	Name  string `json:"name"`
	About string `json:"about"`
	Link  string `json:"link"`
}

ComicInfo : Model for basic information of comic

type PHDComic added in v1.1.0

type PHDComic struct {
	Date    string `json:"date"`
	ComicID int    `json:"comicid"`
	Link    string `json:"link"`
	Title   string `json:"title"`
	Image   string `json:"img"`
}

PHDComic : Model for phd comic

type Version

type Version struct {
	Timestamp time.Time   `json:"timestamp"`
	Name      string      `json:"name"`
	Version   string      `json:"version"`
	Comics    []ComicInfo `json:"comics"`
}

Version : Model for version

type XKCD

type XKCD struct {
	Day        string `json:"day"`
	Month      string `json:"month"`
	Year       string `json:"year"`
	Num        int    `json:"num"`
	Link       string `json:"link"`
	Title      string `json:"title"`
	SafeTitle  string `json:"safe_title"`
	Image      string `json:"img"`
	Alt        string `json:"alt"`
	Transcript string `json:"transcript"`
	News       string `json:"news"`
}

XKCD : Model for xkcd comic

Jump to

Keyboard shortcuts

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