util

package
v0.0.0-...-c01338d Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cost

func Cost(initialCost uint64, count uint64) uint64

func GameLoop

func GameLoop() tea.Cmd

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func NumberFormatLong

func NumberFormatLong(num uint64) string

func SaveDataLoop

func SaveDataLoop() tea.Cmd

func StartGameLoop

func StartGameLoop() tea.Msg

func Tick

func Tick() tea.Cmd

func TickNow

func TickNow() tea.Msg

func Within

func Within(min, val, max int) int

Types

type GameTickMsg

type GameTickMsg struct{}

type SaveDataMsg

type SaveDataMsg struct{}

type ViewTickMsg

type ViewTickMsg struct {
	Time time.Time
}

Jump to

Keyboard shortcuts

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