Documentation ¶
Index ¶
- func InitDictionaries() error
- type Abbrev
- type Abbrevs
- type Common
- func (d Common) Abbrevs() *Abbrevs
- func (d Common) Aliases() []string
- func (d Common) Boost() float32
- func (d Common) ID() string
- func (d Common) IndexID() string
- func (d Common) IndexSettings() IndexSettings
- func (d Common) Slugifier() string
- func (d Common) Title() string
- func (d Common) Unlisted() bool
- type DSL
- type Dictionary
- type GrammarDB
- type HTML
- type IndexSettings
- type Stardict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDictionaries ¶
func InitDictionaries() error
Types ¶
type Abbrevs ¶
type Abbrevs struct {
// contains filtered or unexported fields
}
func (*Abbrevs) MarshalJSON ¶
type Common ¶
type Common struct {
// contains filtered or unexported fields
}
func (Common) IndexSettings ¶
func (d Common) IndexSettings() IndexSettings
type Dictionary ¶
type Dictionary interface { ID() string IndexID() string Boost() float32 Aliases() []string Title() string ToHTML(content string) template.HTML Abbrevs() *Abbrevs Slugifier() string Unlisted() bool IndexSettings() IndexSettings }
Dictionary represents a dictionary
func Get ¶
func Get(idOrAlias string) Dictionary
func GetAll ¶
func GetAll() []Dictionary
func GetAllListed ¶
func GetAllListed() []Dictionary
func GetByID ¶
func GetByID(id string) Dictionary
func GetByIndex ¶
func GetByIndex(index string) Dictionary
type IndexSettings ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.