Documentation ¶ Overview ¶ Package util provides utility functions, e.g. for accessing directories and files. Index ¶ func CopyFile(ctx *b.Context, src, tgdir string) func GetPeriod(ctx *b.Context, period string) time.Duration func JoinUrlPath(url, path string) string func ListDirFiles(ctx *b.Context, path string) []string func ListFiles(ctx *b.Context, pattern string) []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CopyFile ¶ func CopyFile(ctx *b.Context, src, tgdir string) func GetPeriod ¶ func GetPeriod(ctx *b.Context, period string) time.Duration func JoinUrlPath ¶ func JoinUrlPath(url, path string) string func ListDirFiles ¶ added in v0.1.13 func ListDirFiles(ctx *b.Context, path string) []string func ListFiles ¶ func ListFiles(ctx *b.Context, pattern string) []string Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.