apple

package
v3.0.1-rc+incompatible Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apple

type Apple struct {
	// contains filtered or unexported fields
}

func NewApple

func NewApple(world *world.World) (*Apple, error)

NewApple creates and locates new apple

func (*Apple) MarshalJSON

func (a *Apple) MarshalJSON() ([]byte, error)

func (*Apple) NutritionalValue

func (a *Apple) NutritionalValue(dot engine.Dot) uint16

func (*Apple) String

func (a *Apple) String() string

type ErrCreateApple

type ErrCreateApple string

func (ErrCreateApple) Error

func (e ErrCreateApple) Error() string

Jump to

Keyboard shortcuts

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