Documentation ¶
Index ¶
- type Canonicalizer
- func (c *Canonicalizer) Canonicalize(str string) string
- func (c *Canonicalizer) CanonicalizeWithSeparator(str string, separator string) string
- func (c *Canonicalizer) CanonicalizeWithSeparatorAndSuffix(str string, separator string, suffix string) string
- func (c *Canonicalizer) CanonicalizeWithSuffix(str string, suffix string) string
- func (c *Canonicalizer) SetAfterCallback(afterCallback func(string) string)
- func (c *Canonicalizer) SetBeforeCallback(beforeCallback func(string) string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canonicalizer ¶
type Canonicalizer struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Canonicalizer
func NewWithCallbacks ¶
func NewWithCallbacks(beforeCallback func(string) string, afterCallback func(string) string) *Canonicalizer
func NewWithMaxLength ¶
func NewWithMaxLength(maxLength int) *Canonicalizer
func (*Canonicalizer) Canonicalize ¶
func (c *Canonicalizer) Canonicalize(str string) string
func (*Canonicalizer) CanonicalizeWithSeparator ¶
func (c *Canonicalizer) CanonicalizeWithSeparator(str string, separator string) string
func (*Canonicalizer) CanonicalizeWithSeparatorAndSuffix ¶
func (c *Canonicalizer) CanonicalizeWithSeparatorAndSuffix(str string, separator string, suffix string) string
func (*Canonicalizer) CanonicalizeWithSuffix ¶
func (c *Canonicalizer) CanonicalizeWithSuffix(str string, suffix string) string
func (*Canonicalizer) SetAfterCallback ¶
func (c *Canonicalizer) SetAfterCallback(afterCallback func(string) string)
func (*Canonicalizer) SetBeforeCallback ¶
func (c *Canonicalizer) SetBeforeCallback(beforeCallback func(string) string)
Click to show internal directories.
Click to hide internal directories.