Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Echo = hal.Respond(`echo (.+)`, func(res *hal.Response) error {
return res.Reply(res.Match[1])
})
Echo is an example of a simple handler.
View Source
var Ping = &ping{}
Ping exports
View Source
var TableFlip = &hal.Handler{ Method: hal.HEAR, Pattern: `tableflip`, Run: func(res *hal.Response) error { return res.Send(`(╯°□°)╯︵ ┻━┻`) }, }
TableFlip is an example of a Handler
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.