ast

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParamFuncArgInt

func ParamFuncArgInt(a ParamFuncArg) (int, bool)

func ParamFuncArgInt64

func ParamFuncArgInt64(a ParamFuncArg) (int64, bool)

func ParamFuncArgString

func ParamFuncArgString(a ParamFuncArg) (string, bool)

func ParamFuncArgToInt

func ParamFuncArgToInt(a ParamFuncArg) (int, error)

func ParamFuncArgToInt64

func ParamFuncArgToInt64(a ParamFuncArg) (int64, error)

func ParamFuncArgToString

func ParamFuncArgToString(a ParamFuncArg) (string, error)

Types

type ParamFunc

type ParamFunc struct {
	Name string         // range
	Args []ParamFuncArg // [1,5]
}

range(1,5)

type ParamFuncArg

type ParamFuncArg interface{}

type ParamStatement

type ParamStatement struct {
	Name      string      // id
	Type      ParamType   // int
	Funcs     []ParamFunc // range
	ErrorCode int         // 404
}

type ParamType

type ParamType uint8
const (
	ParamTypeUnExpected ParamType = iota
	// /myparam1
	ParamTypeString
	// /42
	ParamTypeInt
	// /myparam
	ParamTypeAlphabetical
	// /main.css
	ParamTypeFile
	// /myparam1/myparam2
	ParamTypePath
)

func LookupParamType

func LookupParamType(ident string) ParamType

Jump to

Keyboard shortcuts

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