Documentation ¶
Index ¶
- func HexToInviteTokenDecodeHook() mapstructure.DecodeHookFunc
- func IsHtmxRequest(r *http.Request) bool
- func NewCookie[T ~string](config config.CookieConfig, name string, value T) *http.Cookie
- func ParseForm[T any](req *http.Request, opts ...ParseOption) (*T, error)
- func StringToUUIDDecodeHook() mapstructure.DecodeHookFunc
- type ParseOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexToInviteTokenDecodeHook ¶
func HexToInviteTokenDecodeHook() mapstructure.DecodeHookFunc
func IsHtmxRequest ¶
func StringToUUIDDecodeHook ¶
func StringToUUIDDecodeHook() mapstructure.DecodeHookFunc
Types ¶
type ParseOption ¶
type ParseOption func(cfg *mapstructure.DecoderConfig)
func WithDecoderHooks ¶
func WithDecoderHooks(hooks ...mapstructure.DecodeHookFunc) ParseOption
Click to show internal directories.
Click to hide internal directories.