db

package
v0.0.0-...-c177ccd Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll(dbFile string) ([]*Result, []*CharStat, error)

func Save

func Save(result Result, charStats map[rune]CharStat, dbFile string) error

Types

type CharStat

type CharStat struct {
	Char      rune
	Correct   int
	Incorrect int
	Accuracy  float64
}

type Result

type Result struct {
	WPM       float64
	Accuracy  float64
	Correct   int
	Total     int
	Mistakes  int
	TimeTaken float64
}

Jump to

Keyboard shortcuts

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