Documentation
¶
Index ¶
- func AbsPath(filename string) string
- func CopyFile(source string, dest string)
- func Exists(filename string) bool
- func FindDiff(one []string, two []string) []string
- func FindOverlap(one []string, two []string) []string
- func GetPwd() string
- func IncludesString(lookingFor string, list []string) bool
- func ListDir(path string, includeDir bool, includeFile bool) []string
- func RandomBool() bool
- func RandomBoolWeight(chanceTrue float32) bool
- func RandomChar() string
- func RandomChoice(choices []string) string
- func RandomFloat() uint64
- func RandomFloatRange(min uint64, max uint64) uint64
- func RandomInt(maxval int) int
- func RandomIntRange(min int, max int) int
- func RandomName() string
- func RandomUint64() uint64
- func ReadFile(path string) string
- func RecursiveFind(root string, pattern string, allowPrefix bool) ([]string, error)
- func RelativePath(root string, path string) string
- func WriteFile(path string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncludesString ¶
includesString to determine if a list include a string
func RandomBoolWeight ¶
RandomBool returns a boolean choice at the user's threshold
func RandomChoice ¶
RandomChoice returns a random selection from a list of strings
func RandomFloatRange ¶
RandomFloatRange generates a random float in a rnage
func RandomIntRange ¶
func RandomName ¶
func RandomName() string
RandomName generates a random name for a function, variaable, etc.
func RandomUint64 ¶
func RandomUint64() uint64
func RecursiveFind ¶
Find files in a directory based on a pattern
func RelativePath ¶
Get the realtive path of a file, relative to some root
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.