Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IgnoreUppercase ignores "uppercased" words IgnoreUppercase = 1 // IgnoreDigits ignores words with digits IgnoreDigits = 2 << 0 // IgnoreUrls ignores urls, emails, filenames IgnoreUrls = 2 << 1 // FindRepeatWords highlights repetitions of words, consecutive FindRepeatWords = 2 << 2 // IgnoreLatin ignores latin words IgnoreLatin = 2 << 3 // NoSuggest disables suggestions for incorrect words NoSuggest = 2 << 4 // FlagLatin marks latin words as incorrect FlagLatin = 2 << 6 // ByWords ignores dictionary context ByWords = 2 << 7 // IgnoreCapitalization ignores the incorrect use of UPPERCASE/lowercase letters IgnoreCapitalization = 2 << 8 // IgnoreRomanNumerals ignores roman numerals IgnoreRomanNumerals = 2 << 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmask ¶
type Bitmask int
Bitmask is used for bitmasks
func (*Bitmask) Set ¶
Set implements interface of flag.Value (https://golang.org/pkg/flag/#Value)
type Config ¶
type Config struct {
Lang string
Format string
Options Bitmask
Version Version
Dictionary Dictionary
}
Config stores settings
type Dictionary ¶
Dictionary implements flag.Value interface and stores regexp patterns of allowed words.
func (*Dictionary) Set ¶
func (d *Dictionary) Set(file string) error
Set reads content of a dictionary and save it into the memory
func (Dictionary) String ¶
func (d Dictionary) String() string
Click to show internal directories.
Click to hide internal directories.