Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyInput ArgumentError = errors.New("empty input") ErrGematriaParse GematriaError = errors.New("unable to parse gematria for value") ErrRegexpMissing RegexpError = errors.New("regexp compile result missing") ErrBadParsing ParseError = errors.New("failed to parse the string") )
Functions ¶
This section is empty.
Types ¶
type ArgumentError ¶
type ArgumentError error
type CleanError ¶
type CleanError error
type GematriaError ¶
type GematriaError error
type ITextee ¶
type ITextee interface {
ParseString(input string) *Textee
SortedSubstrings() SortedStringQuantities
CalculateGematria() *Textee
}
type ParseError ¶
type ParseError error
type RegexpError ¶
type RegexpError error
type SortedStringQuantities ¶
type SortedStringQuantities []SubstringQuantity
func (SortedStringQuantities) Len ¶
func (sq SortedStringQuantities) Len() int
Len is part of sort.Interface.
func (SortedStringQuantities) Less ¶
func (sq SortedStringQuantities) Less(i, j int) bool
Less is part of sort.Interface. We use it to sort the slice by Quantity in descending order.
func (SortedStringQuantities) Swap ¶
func (sq SortedStringQuantities) Swap(i, j int)
Swap is part of sort.Interface.
type SubstringQuantity ¶
type Textee ¶
type Textee struct {
Input string `json:"in"`
Gematria gematria.Gematria `json:"gem"`
Substrings map[string]*atomic.Int32 `json:"subs"` // map[Substring]*atomic.Int32
Gematrias map[string]gematria.Gematria `json:"gems"`
ScoresEnglish map[uint64][]string `json:"sen"`
ScoresJewish map[uint64][]string `json:"sje"`
ScoresSimple map[uint64][]string `json:"ssi"`
ScoresMystery map[uint64][]string `json:"smy"`
ScoresMajestic map[uint64][]string `json:"smj"`
ScoresEights map[uint64][]string `json:"sei"`
// contains filtered or unexported fields
}
func (*Textee) CalculateGematria ¶
func (*Textee) SortedSubstrings ¶
func (tt *Textee) SortedSubstrings() SortedStringQuantities
Click to show internal directories.
Click to hide internal directories.