common

package
v0.0.0-...-02c39c9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexFile = "index.toml"
	TomlExt   = ".toml"
)

Variables

View Source
var (
	Up        = Direction{Y: -1, X: 0}
	Left      = Direction{Y: 0, X: -1}
	Down      = Direction{Y: 1, X: 0}
	Right     = Direction{Y: 0, X: 1}
	UpLeft    = Direction{Y: -1, X: -1}
	UpRight   = Direction{Y: -1, X: 1}
	DownLeft  = Direction{Y: 1, X: -1}
	DownRight = Direction{Y: 1, X: 1}
)

Functions

This section is empty.

Types

type Direction

type Direction = Position

type Position

type Position struct{ Y, X int }

func (*Position) Transform

func (p *Position) Transform(d Direction) Position

type State

type State = string
var (
	Running State = ""
	Succeed State = "succeed"
	Failed  State = "failed"
)

Jump to

Keyboard shortcuts

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