model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMessage

func ErrorMessage(e interface{}) string

func RegisterShape

func RegisterShape(name string, interfaceType reflect.Type, constructor func() interface{}) error

Types

type Shape

type Shape interface {
	Name() string
	Type() reflect.Type
	New() interface{}
}

func GetShapeFromType

func GetShapeFromType(t reflect.Type) (Shape, error)

Jump to

Keyboard shortcuts

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