Documentation ¶
Index ¶
- type Dictionary
- func (d *Dictionary) Delete(k string) error
- func (d *Dictionary) Dump(path string) error
- func (d *Dictionary) Get(key string) (map[string]interface{}, error)
- func (d *Dictionary) GetHandler(w http.ResponseWriter, r *http.Request)
- func (d *Dictionary) MultiMatch(text string) (map[string]*Matches, error)
- func (d *Dictionary) MultiMatchHandler(w http.ResponseWriter, r *http.Request)
- func (d *Dictionary) MultiMaxMatch(text string) (map[string]*Matches, error)
- func (d *Dictionary) MultiMaxMatchHandler(w http.ResponseWriter, r *http.Request)
- func (d *Dictionary) PrefixMatch(text string) (map[string]map[string]interface{}, error)
- func (d *Dictionary) PrefixMatchHandler(w http.ResponseWriter, r *http.Request)
- func (d *Dictionary) RegisterWeb()
- func (d *Dictionary) Replace(k string, values map[string]interface{}) error
- func (d *Dictionary) Save() error
- func (d *Dictionary) Update(k string, values map[string]interface{}) error
- func (d *Dictionary) UpdateHandler(w http.ResponseWriter, r *http.Request)
- type Matches
- type Pos
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
type Dictionary struct { Name string // contains filtered or unexported fields }
func Build ¶
func Build(src, dst string) (*Dictionary, error)
func Load ¶
func Load(name string) (*Dictionary, error)
func (*Dictionary) Delete ¶
func (d *Dictionary) Delete(k string) error
func (*Dictionary) Dump ¶
func (d *Dictionary) Dump(path string) error
func (*Dictionary) GetHandler ¶
func (d *Dictionary) GetHandler(w http.ResponseWriter, r *http.Request)
func (*Dictionary) MultiMatch ¶
func (d *Dictionary) MultiMatch(text string) (map[string]*Matches, error)
func (*Dictionary) MultiMatchHandler ¶
func (d *Dictionary) MultiMatchHandler(w http.ResponseWriter, r *http.Request)
func (*Dictionary) MultiMaxMatch ¶
func (d *Dictionary) MultiMaxMatch(text string) (map[string]*Matches, error)
func (*Dictionary) MultiMaxMatchHandler ¶
func (d *Dictionary) MultiMaxMatchHandler(w http.ResponseWriter, r *http.Request)
func (*Dictionary) PrefixMatch ¶
func (d *Dictionary) PrefixMatch(text string) ( map[string]map[string]interface{}, error)
func (*Dictionary) PrefixMatchHandler ¶
func (d *Dictionary) PrefixMatchHandler(w http.ResponseWriter, r *http.Request)
func (*Dictionary) RegisterWeb ¶
func (d *Dictionary) RegisterWeb()
func (*Dictionary) Replace ¶
func (d *Dictionary) Replace(k string, values map[string]interface{}) error
func (*Dictionary) Save ¶
func (d *Dictionary) Save() error
func (*Dictionary) Update ¶
func (d *Dictionary) Update(k string, values map[string]interface{}) error
func (*Dictionary) UpdateHandler ¶
func (d *Dictionary) UpdateHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.