packages

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Packages is a where all the packages are stored so they can be imported when wanted
	Packages = make(map[string]map[string]interface{}, 16)
	// PackageTypes is a where all the package types are stored so they can be imported when wanted
	PackageTypes = make(map[string]map[string]interface{}, 4)
)

Functions

func DefineImport

func DefineImport(e *vm.Env)

DefineImport defines the vm import command that will import packages and package types when wanted

Types

type SortFuncsStruct

type SortFuncsStruct struct {
	LenFunc  func() int
	LessFunc func(i, j int) bool
	SwapFunc func(i, j int)
}

SortFuncsStruct provides functions to be used with Sort

func (SortFuncsStruct) Len

func (s SortFuncsStruct) Len() int

func (SortFuncsStruct) Less

func (s SortFuncsStruct) Less(i, j int) bool

func (SortFuncsStruct) Swap

func (s SortFuncsStruct) Swap(i, j int)

Jump to

Keyboard shortcuts

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