grid

package
v0.0.0-...-8917105 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellsGrid

type CellsGrid [][]cell.Cell

type Grid

type Grid interface {
	Width() int
	Height() int

	Cells() CellsGrid
}

func NewGrid

func NewGrid(cfg GridCfg) Grid

type GridCfg

type GridCfg struct {
	Width  int `arg:"--grid-width,env:GRID_WIDTH" default:"100" help:"Width of the grid"`
	Height int `arg:"--grid-height,env:GRID_HEIGHT" default:"100" help:"Height of the grid"`
}

Jump to

Keyboard shortcuts

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