Versions in this module Expand all Collapse all v0 v0.0.5 Nov 13, 2020 v0.0.1 Nov 13, 2020 Changes in this version + var ErrCntrl = errors.New("replaceStr can't contain control characters") + var ErrInval = errors.New("replaceStr can't contain ., <, >, :, \", /, \\, |, ?, *") + var ErrLen = errors.New("maxLen can't be greater than 255") + type Sanitize struct + func New() *Sanitize + func NewWithOpts(replaceStr string, maxLen int) (*Sanitize, error) + func (s *Sanitize) Clean(fileName string) string + func (s *Sanitize) Name(fileName string) string