mod

package
v0.0.0-...-ce71dfa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: BSD-2-Clause-Views Imports: 14 Imported by: 0

Documentation

Overview

This package gets around the lack of dynamic code loading in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(s string) iface.Module

func ToInstance

func ToInstance(i interface{}) iface.Instance

Takes an instance of any type, and creates an Instance from it.

Types

type Instance

type Instance reflect.Value

func (Instance) HasMethod

func (i Instance) HasMethod(fname string) bool

func (Instance) Method

func (i Instance) Method(s string) iface.Method

func (Instance) MethodNames

func (i Instance) MethodNames() []string

type Method

type Method reflect.Value

func (Method) Call

func (me Method) Call(ret_reciever interface{}, params ...interface{}) error

func (Method) InputTypes

func (me Method) InputTypes() []reflect.Type

func (Method) Matches

func (me Method) Matches(i interface{}) bool

Mathes signature

func (Method) OutputTypes

func (me Method) OutputTypes() []reflect.Type

type Module

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

func (*Module) Exists

func (m *Module) Exists() bool

func (*Module) Instance

func (m *Module) Instance() iface.Instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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