Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Enabled bool
}
Options struct which represents strip slashes plugin from chi options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.
type StripSlashes ¶
type StripSlashes struct {
// contains filtered or unexported fields
}
StripSlashes struct which represents a stripslashes plugin from chi.
func NewStripSlashesWithConfigPath ¶
func NewStripSlashesWithConfigPath(path string) (*StripSlashes, error)
NewStripSlashesWithConfigPath returns a new stripslashes with options from config path.
func NewStripSlashesWithOptions ¶
func NewStripSlashesWithOptions(options *Options) *StripSlashes
NewStripSlashesWithOptions returns a new stripslashes plugin with options.
Click to show internal directories.
Click to hide internal directories.