Versions in this module Expand all Collapse all v0 v0.0.1 Nov 13, 2015 Changes in this version + var ErrCouldNotExtract = errors.New("utils: could not extract the archive") + var ErrExtractedFileTooBig = errors.New("utils: could not extract one or more files from the archive: file too big") + func CleanURL(str string) string + func CompareStringLists(X, Y []string) []string + func Contains(needle string, haystack []string) bool + func Exec(dir string, bin string, args ...string) ([]byte, error) + func Hash(str string) string + func SelectivelyExtractArchive(r io.Reader, toExtract []string, maxFileSize int64) (map[string][]byte, error) + type Stopper struct + func NewStopper() *Stopper + func (s *Stopper) Begin() + func (s *Stopper) Chan() chan struct{} + func (s *Stopper) End() + func (s *Stopper) Sleep(d time.Duration) bool + func (s *Stopper) Stop()