Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CheevoByID = map[string]*Cheevo{} CheevoList []*Cheevo CheevoTree map[string][]*Cheevo )
View Source
var ( CountryByID = map[string]*Country{} CountryTree map[string][]*Country )
View Source
var ( // Standard holes. HoleByID = map[string]*Hole{} HoleList []*Hole // Experimental holes. ExpHoleByID = map[string]*Hole{} ExpHoleList []*Hole // All holes. AllHoleByID = map[string]*Hole{} AllHoleList []*Hole // Ten most recent holes, used for /rankings/recent-holes. RecentHoles []*Hole )
View Source
var ( // Standard languages. LangByID = map[string]*Lang{} LangList []*Lang // Experimental languages. ExpLangByID = map[string]*Lang{} ExpLangList []*Lang // All languages. AllLangByID = map[string]*Lang{} AllLangList []*Lang )
View Source
var PathSlug = regexp.MustCompile("{[a-z]+}")
View Source
var Settings map[string][]*Setting
Functions ¶
Types ¶
type Cheevo ¶
type Hole ¶
type Hole struct { CaseFold bool `json:"-" toml:"case-fold"` Categories []string `json:"-"` Category string `json:"category"` CategoryColor, CategoryIcon string `json:"-"` Data template.JS `json:"-"` Experiment int `json:"-"` ID string `json:"id"` ItemDelimiter string `json:"-" toml:"item-delimiter"` MultisetDelimiter string `json:"-" toml:"multiset-delimiter"` Links []Link `json:"links"` Name string `json:"name"` Preamble template.HTML `json:"preamble"` Prev, Next *Hole `json:"-"` Released toml.LocalDate `json:"released"` Releases []toml.LocalDate `json:"-"` Synopsis string `json:"synopsis"` Variants []*Hole `json:"-"` }
type Lang ¶
type NullCountry ¶
func (*NullCountry) Scan ¶
func (n *NullCountry) Scan(id any) error
Click to show internal directories.
Click to hide internal directories.