database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(test TestResult) error

Types

type History

type History []TestResult

func GetHistory

func GetHistory() (History, error)

type TestResult

type TestResult struct {
	RawWPM   float64       `json:"raw_wpm"`
	WPM      float64       `json:"wpm"`
	Acc      float64       `json:"accuracy"`
	Duration time.Duration `json:"duration"`
	Date     time.Time     `json:"date"`
	Quote    string        `json:"quote"`
}

Jump to

Keyboard shortcuts

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