Documentation ¶
Overview ¶
Package sanitize goal is to have same fileName irrespective of platform. Incase of invalid fileName, a md5Sum of provided file is returned
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCntrl represents `replaceStr` contains Control Characters ErrCntrl = errors.New("replaceStr can't contain control characters") // ErrInval represents `replaceStr` contains Invalid Characters ErrInval = errors.New("replaceStr can't contain ., <, >, :, \", /, \\, |, ?, *") // ErrLen represents `maxLen` is greater than 255 ErrLen = errors.New("maxLen can't be greater than 255") )
Functions ¶
This section is empty.
Types ¶
type Sanitize ¶
type Sanitize struct {
// contains filtered or unexported fields
}
Sanitize struct
func NewWithOpts ¶
NewWithOpts returns Sanitize with opts set Certain conditions exist for replace Str and
Click to show internal directories.
Click to hide internal directories.