Documentation
¶
Index ¶
- func InitDictionaries() error
- type Abbrev
- type Abbrevs
- type Common
- func (d Common) Abbrevs() *Abbrevs
- func (d Common) Aliases() []string
- func (d Common) Authors() bool
- func (d Common) Boost() float32
- func (d Common) ID() string
- func (d Common) IndexID() string
- func (d Common) IndexSettings() IndexSettings
- func (d Common) Preface() string
- func (d Common) ScanURL() string
- func (d Common) Slugifier() string
- func (d Common) Title() string
- type DSL
- type Dictionary
- type GrammarDB
- type HTML
- type IndexSettings
- type Section
- 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
Preface() string
Abbrevs() *Abbrevs
ScanURL() string
Slugifier() string
Authors() 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 ¶
type Section ¶
func GetAllSections ¶
func GetAllSections() []Section
Source Files
¶
Click to show internal directories.
Click to hide internal directories.