Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MD5Generator ¶
type MD5Generator struct { }
MD5Generator genrates the md5 sum of a file name
func NewMD5Generator ¶
func NewMD5Generator() *MD5Generator
NewMD5Generator returns an instance of an MD5Generator
type RandomGenerator ¶
type RandomGenerator struct {
// contains filtered or unexported fields
}
RandomGenerator generates a random string that can be used as a file name instead of it's original name
func NewRandomGenerator ¶
func NewRandomGenerator(l int) *RandomGenerator
NewRandomGenerator returns an instance of a RandomGenerator If length is less than (or equal to) 0, a panic would occur
type SlugGenerator ¶
type SlugGenerator struct{}
SlugGenerator is a generator that slugifies the name of a given file
func NewSlugGenerator ¶
func NewSlugGenerator() *SlugGenerator
NewSlugGenerator returns an instance of a SlugGenerator
Click to show internal directories.
Click to hide internal directories.