Documentation ¶
Index ¶
Constants ¶
View Source
const SumsLineRe = `(.*?) \*(.*)`
Variables ¶
View Source
var SumsLineReC = regexp.MustCompile(SumsLineRe)
Functions ¶
Types ¶
type Sums ¶
type Sums struct {
Lines []*SumsLine
}
func (*Sums) LoadFromFile ¶
func (*Sums) RemoveDuplicates ¶
func (self *Sums) RemoveDuplicates()
warning: this may be slow for large list. working with 1000 takes few seconds
func (*Sums) SaveToFile ¶
func (*Sums) SortLinesByValue ¶
func (self *Sums) SortLinesByValue()
warning: this may be slow for large list. working with 1000 takes few seconds
type SumsLine ¶
type SumsLine struct {
// contains filtered or unexported fields
}
func NewSumsLine ¶
func NewSumsLineFromBytes ¶
func NewSumsLineFromString ¶
NOTE: trailing newline trimmed from value
Click to show internal directories.
Click to hide internal directories.