Versions in this module Expand all Collapse all v1 v1.2.1 Nov 6, 2021 v1.2.0 Nov 6, 2021 v1.1.0 Nov 3, 2021 Changes in this version + var ErrorCloseFile = errors.New("error: unable to close the file") + var ErrorDecodeImage = errors.New("error: unable to decode specified image") + var ErrorFileExtension = errors.New("error: target image must be .png") + var ErrorFullStack = errors.New("error: trying to push in a full stack") + var ErrorInputScanning = errors.New("error: problems reading input") + var ErrorInvalidHex = errors.New("error: invalid hex format") + var ErrorLoadConfig = errors.New("error: unable to load config file") + var ErrorOpenImage = errors.New("error: unable to open specified image") + var ErrorOutOfBounds = errors.New("error: out of bounds") + var ErrorPop = errors.New("error: trying to pop an empty stack") + var ErrorRandomGenerator = errors.New("error: trying to generate a random number with n <= 0") + var OPERATIONS = map[string]*Pixel + func Btoi(b bool) int + func Itob(i int) bool + type Interpreter struct + func NewInterpreter(debug bool, configs string, maxSize int) *Interpreter + func (i *Interpreter) GetImage() image.Image + func (i *Interpreter) LoadImage(path string) error + func (i *Interpreter) Run() + func (i *Interpreter) Step() (bool, string) + type Pixel struct + B uint8 + G uint8 + R uint8 + func (p *Pixel) Equals(other Pixel) bool + func (p *Pixel) String() string + type Stack struct + func NewStack(maxSize int) *Stack + func (stack *Stack) Cycle() + func (stack *Stack) GetItemAt(i int) int + func (stack *Stack) IsEmpty() bool + func (stack *Stack) Output() + func (stack *Stack) Peek() int + func (stack *Stack) Pop() (int, error) + func (stack *Stack) Push(val int) error + func (stack *Stack) RCycle() + func (stack *Stack) Reverse() + func (stack *Stack) Size() int Other modules containing this package github.com/Vinetwigs/vilmos/v2