db

package
v0.0.0-...-f522705 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHighScore

func CreateHighScore(db *sql.DB, h HighScore) error

func GetDB

func GetDB(name string) (*sql.DB, error)

func IsRegister

func IsRegister(db *sql.DB) bool

func UpdateHighScore

func UpdateHighScore(db *sql.DB, h HighScore) error

Types

type HighScore

type HighScore struct {
	ID    int
	Name  string
	Score int
}

func GetHighScore

func GetHighScore(db *sql.DB) (HighScore, error)

Jump to

Keyboard shortcuts

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