Documentation ¶ Index ¶ type CellsGrid type Grid func NewGrid(cfg GridCfg) Grid type GridCfg 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"` } Source Files ¶ View all Source files grid.go iface.go Click to show internal directories. Click to hide internal directories.