gaingraph

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyEntry

type DailyEntry struct {
	Date     string `json:"date"`
	Tokens   int64  `json:"tokens"`
	Saved    int64  `json:"saved"`
	Commands int    `json:"commands"`
}

type GainGraph

type GainGraph struct {
	// contains filtered or unexported fields
}

func NewGainGraph

func NewGainGraph() *GainGraph

func (*GainGraph) GetDaily

func (g *GainGraph) GetDaily(days int) []*DailyEntry

func (*GainGraph) Record

func (g *GainGraph) Record(date string, tokens, saved int64, commands int)

func (*GainGraph) RenderGraph

func (g *GainGraph) RenderGraph(width int) string

Jump to

Keyboard shortcuts

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