Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Do ¶
Do will execute incoming http.Request message.
func (Do) T ¶
T implements the Tfunc interface
Example ¶
l.New().SetP(func(out chan<- interface{}, errs chan<- error) { req, err := http.NewRequest("GET", "https://google.com", nil) if err != nil { errs <- err } else { out <- req out <- req } }).Add( Do{}.T, l.I(func(m interface{}) (interface{}, error) { return m.(*http.Response).Status, nil }), l.Stdout, ).Run()
Output: 200 OK 200 OK
Click to show internal directories.
Click to hide internal directories.