Documentation
¶
Overview ¶
Package methodkind classifies handler method names into HTTP method kinds (GET, POST, PUT, DELETE) or event handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind int8
Kind represents the kind of handler method.
const ( GETHandler Kind ActionPOSTHandler ActionPUTHandler ActionDELETEHandler EventHandler )
func Classify ¶
Classify determines the handler kind and name suffix from a method name. Returns zero Kind for unrecognized names.
func (Kind) HTTPMethod ¶
HTTPMethod returns the HTTP method string for the kind.
Click to show internal directories.
Click to hide internal directories.