record

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL