Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Caller = &_Caller{}
Caller init
var ErrNoFuncCaller = errors.New("pkg: no func caller error")
ErrNoFuncCaller not found error
Functions ¶
Types ¶
type Pipeline ¶
type Pipeline func(...interface{}) error
Pipeline is the func type for the pipeline result.
func Pipe ¶
func Pipe(fs ...interface{}) Pipeline
Pipe accepts zero or more funcs fs and creates a pipeline.
A pipeline syncs outputs and inputs of consequent funcs together, such that the output of i'th func is the input of (i+1)'th func. Each func can accept zero or one input argument and return zero or one value with an optional error.
The last func is called a sink which only accepts an input argument and returns no value except an optional error; unless its return value will be ignored.
If a func in the pipeline fails with an error during the invocation, the pipe is broken immediately and the invocation returns an error.
Directories
¶
Path | Synopsis |
---|---|
Package null contains SQL types that consider zero input and null input as separate values, with convenient support for JSON and text marshaling.
|
Package null contains SQL types that consider zero input and null input as separate values, with convenient support for JSON and text marshaling. |
Package structs contains various utilities functions to work with structs.
|
Package structs contains various utilities functions to work with structs. |
Package table provides a convenient way to generate tabular output of any data, primarily useful for CLI tools.
|
Package table provides a convenient way to generate tabular output of any data, primarily useful for CLI tools. |
Package now is a time toolkit for golang.
|
Package now is a time toolkit for golang. |