parse

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncType

type FuncType int

FuncType is the type of a function that mage understands.

const (
	InvalidType FuncType = iota
	VoidType
	ErrorType
)

FuncTypes

type Function

type Function struct {
	Name     string
	IsError  bool
	Synopsis string
	Comment  string
}

type PkgInfo

type PkgInfo struct {
	Funcs          []Function
	DefaultIsError bool
	DefaultName    string
}

func Package

func Package(path string, files []string) (*PkgInfo, error)

Package parses a package

Jump to

Keyboard shortcuts

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