Versions in this module Expand all Collapse all v0 v0.3.0 Feb 4, 2020 Changes in this version + func CheckAndCreateDirectory(path string, mode os.FileMode) error + func Copy(src io.ReadCloser, w io.Writer) error + func OnCreateNewFile(localFile string, fnOnCreate OnWriterFunc) error + func OnReadClose(reader io.ReadCloser, fnOnReadClose OnReadCloseFunc) error + func OnReadEntireFile(localFile string, fnOnBytes OnBytesFunc) error + func OnTempDirectory(dir string, prefix string, fnOnDir OnDirFunc) (string, error) + func ToSet(myList []string) []string + func WriteString(writer io.Writer, s string) error + func WriteStringln(writer io.Writer, s string) error + func WriteStrings(writer io.Writer, s []string) error + func WriteTarFile(inputDirectory string, w io.Writer) error + type OnBytesFunc func(b []byte) error + type OnDirFunc func(inDir string) error + type OnGenericFunc func() error + type OnProfileFunc func(profile *Profile) error + type OnReadCloseFunc func(reader io.ReadCloser) error + type OnWriterFunc func(w io.Writer) error + type Profile struct + Begin time.Time + Duration time.Duration + End time.Time + Name string + func NewProfile(name string) *Profile + func RunProfile(name string, fnOnGenericFunc OnGenericFunc) (*Profile, error) + func (profile *Profile) Start() + func (profile *Profile) Stop()