Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FilenameSize = 16
View Source
var RunesEasy = []rune("abcdefghijklmnopqrstuvwxyz01234567890-_")
View Source
var RunesHard = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890!@#$%^&*()-_+= ;.,<>'\"[]{}() ")
Functions ¶
func RandomFilename ¶
func WriteRandomFile ¶
Types ¶
type Options ¶
type Options struct { Out io.Writer // output progress Source io.Reader // randomness source FileSize int // the size per file. Alphabet []rune // for filenames FanoutDepth int // how deep the hierarchy goes FanoutFiles int // how many files per dir FanoutDirs int // how many dirs per dir RandomSeed int64 // use a random seed. if 0, use a random seed RandomSize bool // randomize file sizes RandomFanout bool // randomize fanout numbers }
Click to show internal directories.
Click to hide internal directories.