cmd

package
v0.0.0-...-73fb8be Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() (exit exitcode.ExitCode)

func SetupDB

func SetupDB(userID, userName string, dbConn *sql.DB) error

Types

type DB

type DB struct {
	DbConnection *sql.DB
}

func (*DB) Select

func (d *DB) Select() (*db.User, error)

type ErrCategory

type ErrCategory string
var (
	SQLFILE_NOT_FOUND ErrCategory
	SOMETHING_WRONG   ErrCategory
)

type Game

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

type MyErr

type MyErr struct {
	Category ErrCategory
	Msg      string
}

func (*MyErr) Error

func (e *MyErr) Error() string

type Ranking

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

Jump to

Keyboard shortcuts

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