Documentation
¶
Index ¶
- func String(tm *template.Template, data interface{}) (string, error)
- type ClientFile
- type ClientFunc
- type ClientFuncQuery
- type ClientFuncResponse
- type ConvertToFloatXX
- type ErrorBuilder
- type ErrorWrapper
- type GoIntVar
- type GoIntXXVar
- type GoIntXXVarFormat
- type GoStringVar
- type GoVariable
- type ParseIntXX
- type Render
- func Assign(to string, from Render) Render
- func AssignNew(to string, from Render) Render
- func ConvertToBool(from, to string, newError ErrorWrapper) Render
- func ConvertToFloat32(from, to string, newError ErrorWrapper) Render
- func ConvertToFloat64(from, to string, newError ErrorWrapper) Render
- func Executor(e interface{ ... }) Render
- func ParseInt(to string, from string, newError ErrorWrapper) Render
- func ParseInt32(to string, from string, newError ErrorWrapper) Render
- func ParseInt64(to string, from string, newError ErrorWrapper) Render
- func TypeConversion(goType, variable string) Render
- type Renders
- type Template
- type Templater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientFile ¶
type ClientFile struct {
Funcs []Templater
}
func (*ClientFile) String ¶
func (c *ClientFile) String() (string, error)
type ClientFunc ¶
type ClientFunc struct {
Name string
Method string
URL string
Queries []ClientFuncQuery
Responses []ClientFuncResponse
DefaultResponse ClientFuncResponse
}
func (*ClientFunc) String ¶
func (c *ClientFunc) String() (string, error)
type ClientFuncQuery ¶
type ClientFuncResponse ¶
type ConvertToFloatXX ¶
type ConvertToFloatXX struct {
BitSize int
From, ToNew string
Error ErrorWrapper
}
func (ConvertToFloatXX) String ¶
func (c ConvertToFloatXX) String() (string, error)
type ErrorBuilder ¶
func HeaderParseError ¶
func HeaderParseError(param string) ErrorBuilder
func PathParseError ¶
func PathParseError(param string) ErrorBuilder
func QueryParseError ¶
func QueryParseError(param string) ErrorBuilder
type ErrorWrapper ¶
type ErrorWrapper = ErrorBuilder
type GoIntXXVar ¶
type GoIntXXVar int
func (GoIntXXVar) Format ¶
func (v GoIntXXVar) Format(s string) Templater
func (GoIntXXVar) Parser ¶
func (v GoIntXXVar) Parser(from, to string, errWr ErrorWrapper) Templater
func (GoIntXXVar) String ¶
func (v GoIntXXVar) String() (string, error)
type GoIntXXVarFormat ¶
func (GoIntXXVarFormat) String ¶
func (v GoIntXXVarFormat) String() (string, error)
type GoStringVar ¶
type GoStringVar GoVariable
func (GoStringVar) Parser ¶
func (v GoStringVar) Parser(to string, from Render, errWr ErrorWrapper) Renders
type GoVariable ¶
type GoVariable string
type ParseIntXX ¶
type ParseIntXX struct {
BitSize int
From string
ToNew string
Error ErrorWrapper
}
func (ParseIntXX) String ¶
func (c ParseIntXX) String() (string, error)
type Render ¶
type Render = Templater
func ConvertToBool ¶
func ConvertToBool(from, to string, newError ErrorWrapper) Render
func ConvertToFloat32 ¶
func ConvertToFloat32(from, to string, newError ErrorWrapper) Render
func ConvertToFloat64 ¶
func ConvertToFloat64(from, to string, newError ErrorWrapper) Render
func ParseInt32 ¶
func ParseInt32(to string, from string, newError ErrorWrapper) Render
func ParseInt64 ¶
func ParseInt64(to string, from string, newError ErrorWrapper) Render
func TypeConversion ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func InitTemplate ¶
Click to show internal directories.
Click to hide internal directories.