d4

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	Up    = Direction(d8.Up)
	Down  = Direction(d8.Down)
	Left  = Direction(d8.Left)
	Right = Direction(d8.Right)
)

Variables

This section is empty.

Functions

func GetDirChar

func GetDirChar(dir Direction) byte

func GetNextCell

func GetNextCell(r, c int, dir Direction) (nr, nc int)

func MustFindInStringGrid

func MustFindInStringGrid(lines []string, char byte) (r, c int)

Types

type Direction

type Direction int

func DirForUDLR

func DirForUDLR(c string) Direction

func OppositeDir

func OppositeDir(dir Direction) Direction

func (Direction) String

func (dir Direction) String() string

Jump to

Keyboard shortcuts

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