typescript

package
v0.0.0-...-9768b48 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JS_PATH = path.Join(os.Getenv("GOPATH"), "src", reflect.TypeOf(PackageStr{}).PkgPath(), "extract.js")

Functions

This section is empty.

Types

type FieldStr

type FieldStr struct {
	Name     string
	Document string
	Type     *TypeStr
}

type MethodStr

type MethodStr struct {
	Name     string
	Document string
	Result   *TypeStr
	Params   []*TypeStr
}

type ObjectStr

type ObjectStr struct {
	Name    string
	Module  string
	Parents []*TypeStr
	Fields  []*FieldStr
	Methods []*MethodStr
}

type PackageStr

type PackageStr struct {
	Files   []string
	Objects []*ObjectStr
}

func Extract

func Extract(files []string) (pkg *PackageStr)

type TypeStr

type TypeStr struct {
	Simple  string
	Variant []*TypeStr
	List    *TypeStr
	Key     *TypeStr
	Value   *TypeStr
}

Jump to

Keyboard shortcuts

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