alpaca

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LibraryRoot string
)

Functions

func ActiveClassInfo

func ActiveClassInfo(name string, class interface{}) map[string]interface{}

func ArgsFunctionMaker

func ArgsFunctionMaker(before, after string) interface{}

func ArrayInterfaceToString

func ArrayInterfaceToString(inter interface{}) []string

func ChooseTemplate

func ChooseTemplate(template string) func(string, string, interface{})

func FunctionsNode

func FunctionsNode(fnc map[string]interface{})

func FunctionsPhp

func FunctionsPhp(fnc map[string]interface{})

func FunctionsPython

func FunctionsPython(fnc map[string]interface{})

func FunctionsRuby

func FunctionsRuby(fnc map[string]interface{})

func HandleError

func HandleError(e error)

func MakeDir

func MakeDir(name string)

func MakeLibraryDir

func MakeLibraryDir(name string)

func MapKeysToStringArray

func MapKeysToStringArray(inter interface{}, exclude []string) []string

func MethodList

func MethodList(class interface{}) []string

func ModifyData

func ModifyData(data *Data)

func MoveDir

func MoveDir(name string)

func PathFunctionMaker

func PathFunctionMaker(before, after string) interface{}

func PrntFunctionMaker

func PrntFunctionMaker(boolcap bool, tab, strbeg, strend, arrbeg, arrend, objbeg, objend, keybeg, keyend string) interface{}

func ReadJSON

func ReadJSON(name string, v interface{})

func ReadTemplate

func ReadTemplate(name string) *template.Template

func WriteLibraries

func WriteLibraries(directory string, opts *LanguageOptions)

func WriteNode

func WriteNode(data *Data)

func WritePhp

func WritePhp(data *Data)

func WritePython

func WritePython(data *Data)

func WriteRuby

func WriteRuby(data *Data)

func WriteTemplate

func WriteTemplate(temp *template.Template, out string, data interface{})

Types

type Data

type Data struct {
	Pkg map[string]interface{}
	Api map[string]interface{}
	Doc map[string]interface{}
	Fnc map[string]interface{}
}

func ReadData

func ReadData() *Data

type LanguageOptions

type LanguageOptions struct {
	Php    bool `long:"no-php" description:"Do not write php library"`
	Python bool `long:"no-python" description:"Do not write python library"`
	Ruby   bool `long:"no-ruby" description:"Do not write ruby library"`
	Node   bool `long:"no-node" description:"Do not write node library"`
}

Jump to

Keyboard shortcuts

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