What's new?
- Hoist
IsFieldArrayregex to package level to eliminate per-callregexp.MustCompileallocations on hot transform paths. (#108)
What's new?
- Add
ToHumanisedStringfunc to make values more readable.
Bug fixes
- Fix
ParseTimehelper to returntime.Timeinstead of*time.Time. (#95)
What's new?
- Add
ParseTimehelper function to parse various strings into*time.Time. (#92)
Breaking changes
- Remove
MergeMaps - Remove
MergeStringMaps - Remove
CloneStringMap
What's new?
- Add
helpers.AppendSliceUnique. (#86) - Add ByteMapToStringMap
What's new?
- Add
ListFilesWithContextfunction to handle context cancellations.(#70) - Add
AnySliceToTypedSliceandToTypedSlicefunctions.(#78) - Add
TrimBlankLinefunction.(#79) - Add StringSliceEqualIgnoreOrder function to handle string slices comparison ignoring order. (#741)
- Add type check functions.
Bug fixes
- Fixes issue with
RotatingLogWriterwhere it panics when starting up.(#67)
What's new?
Bug fixes
- Remove
UpgradeRWMutex, which had a potential race condition.(#60)
What's new?
- Adds flag in 'ListFiles' to skip over empty directories. (#53)
What's new?
- Add
UpgradeRWMutex. (#42) - Optimise list files to recursively traverse directories only if there's a match. (#49)
- Add utilities to work with golang maps. (#50)
- Add MaxResults to ListOptions type to limit number of files listing. (#45)
What's new?
- Add file watcher. (#26)
- Adds helper functions for strings and hashes. (#29)
- Add DirectoryExists.
- Add GlobRoot.
- Add SplitPath.
- Deprecate
TildefyandFileExistsinhelperspackage and add tofilespackage.
What's new?
- Update
RemoveFromStringSliceto accepts multiple values to remove. Add additional string slice function unit tests. (#24) - Add
LintNamefunction to helpers. (#15) - Add
EscapePropertyNameandUnescapePropertyNamefunctions to escape dots in property names. (#21)
Bug fixes
- Fix
GetNestedFieldValueFromInterfacereturning nil, if a column name contains dot. (UpdateGetFieldValueFromInterfaceandGetNestedFieldValueFromInterfaceto useUnescapePropertyNameto support names with dots.) (#23) - Fix StringSliceDistinct not returning all the distinct items, instead removing the duplicate one from output. (#20)
What's new?
- Add
CombineErrorsandCombineErrorsWithPrefix. (#12) - Add
IsNil. (#18) - Add
TabifyStringSlice. (#13) - Add
StringSliceDistinctandStringSliceHasDuplicates. (#14) - Update
TruncateStringto take newlines into account. (#16)
- Fix length bug in
TruncateString.
What's new?
Bug fixes
- Handle null pointers in
ToBool
Bug fixes
- Handle null pointers in
ToBool
What's new?
- Add
ToBoolPtrto convert interface to a bool pointer. If the value is nil, or there is a conversion error, return nil. (#3)
What's new?
- Add type conversion function
CastString, which casts an interface to a string. This is the same asSafeStringexcept it also returns a success flag.