Categorygithub.com/windmillcode/go_scripts

# README

Changelog

v1.0.0

  • utils.GetItemsInFolder now has just one argument for convenience

v1.0.1

  • added FilterArray which makes it more convenient to filter an array given an array and predicate(condition function)
  • added methods that would cast the interface to the appropriate type

v1.0.2

  • made a slight change

v1.0.3

  • added index to element

v1.1.0

  • added FilterMapByKeys all all the respective casting fns

v1.1.1

  • added func OverwriteMap which is like js Object.assign

v1.1.2

  • added func OverwriteMap which is like js Object.assign

v2.0.0

  • replaced FilterMapByKeys with FilterMap where its predicate fn accepts key,val

v2.0.1

  • added FilterJSONByPredicate

v2.0.2

  • added WriteCustomFormattedJSONToFile to help format files

v2.0.5

  • WriteCustomFormattedJSONToFile supports bytes and interface strcutures, added UnicodeUnquote which will remove all unicode from a string when writing from bytes to a file,

v2.0.6

  • added AddContentToEachLineInFile AddContentToFile, which takes a predicate function and updates the file based on the return of the predicate fn

v2.1.1

  • added MergeDirectories fn which would merge all files and folders from target dir into source dir w/o overrting anything

v2.1.2

  • added RunCommandWithOptions fn which supports optional target dir,optional get output, and panic on error

v2.1.3

  • added TraverseDirectory with a predicate fn

v2.1.4

  • added TruncateStringByRegex fn which allows the end user to provide a regex and has a predicate fn for every match in the pattern matcher which if returns true removes the substr from the array

v2.1.5

  • additional updates

# Packages

No description provided by the author