Documentation ¶ Index ¶ type FormatOptions type Record func (r *Record) Format(options FormatOptions) string func (r *Record) UpdateWeight(input string) type Records func (r Records) Search(input string) []Record func (r Records) Sort() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type FormatOptions ¶ type FormatOptions struct { NoLastUpdate bool NoCount bool WithId bool } type Record ¶ type Record struct { Id int64 Command string LastUpdate time.Time Count uint64 Weight uint64 } func (*Record) Format ¶ func (r *Record) Format(options FormatOptions) string func (*Record) UpdateWeight ¶ added in v0.3.0 func (r *Record) UpdateWeight(input string) type Records ¶ added in v0.3.0 type Records []Record func (Records) Search ¶ added in v0.3.0 func (r Records) Search(input string) []Record func (Records) Sort ¶ added in v0.3.0 func (r Records) Sort() Source Files ¶ View all Source files record.go records.go Click to show internal directories. Click to hide internal directories.