data

package
v0.0.0-...-1c0158d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

type BoltDB struct {
	DB *bolt.DB
}

func NewBoltDB

func NewBoltDB() *BoltDB

func (*BoltDB) Close

func (b *BoltDB) Close() error

func (*BoltDB) LoadPlayers

func (b *BoltDB) LoadPlayers() ([]Player, error)

func (*BoltDB) Open

func (b *BoltDB) Open(conn string) error

func (*BoltDB) SavePlayers

func (b *BoltDB) SavePlayers(players []Player) error

type Item

type Item struct {
	Name     string
	Quantity int64
}

type Player

type Player struct {
	Name      string
	Title     string
	Rank      int
	NetWorth  float64
	Money     float64
	Salary    float64
	Inventory []Item
}

Jump to

Keyboard shortcuts

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