utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBFile string = "countup.sh.db"

Variables

View Source
var DBInstance *sql.DB

Functions

func DBClose

func DBClose()

func DBNew

func DBNew()

func DBSetCounter

func DBSetCounter(name string, elapsed int)

func GetDataDirectory

func GetDataDirectory() string

Types

type DBCounter

type DBCounter struct {
	Name    string
	Elapsed int
}

func DBGetCounter

func DBGetCounter(name string) DBCounter

Jump to

Keyboard shortcuts

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