minigo

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapToStruct

func ConvertMapToStruct(v map[string]interface{}) (interface{}, error)

ConvertMapToStruct converts a map into a struct representation.

Types

type Config

type Config struct {
	StartTokens []rune
	EndTokens   []rune
}

Config holds configuration values for Minigo.

type Minigo

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

Minigo can be used to run .go files.

func New

func New(config Config) (*Minigo, error)

New creates a new Minigo instance.

func (*Minigo) Run

func (minigo *Minigo) Run(src io.ReadSeeker, context interface{}, output io.Writer) error

Run runs the go interpreter on src and writes the output to output.

Jump to

Keyboard shortcuts

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