What's new?
- Add
helpers.AppendSliceUnique
. (#86)
What's new?
- Add
ListFilesWithContext
function to handle context cancellations.(#70) - Add
AnySliceToTypedSlice
andToTypedSlice
functions.(#78) - Add
TrimBlankLine
function.(#79) - Add StringSliceEqualIgnoreOrder function to handle string slices comparison ignoring order. (#741)
- Add type check functions.
Bug fixes
- Fixes issue with
RotatingLogWriter
where 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
Tildefy
andFileExists
inhelpers
package and add tofiles
package.
What's new?
- Update
RemoveFromStringSlice
to accepts multiple values to remove. Add additional string slice function unit tests. (#24) - Add
LintName
function to helpers. (#15) - Add
EscapePropertyName
andUnescapePropertyName
functions to escape dots in property names. (#21)
Bug fixes
- Fix
GetNestedFieldValueFromInterface
returning nil, if a column name contains dot. (UpdateGetFieldValueFromInterface
andGetNestedFieldValueFromInterface
to useUnescapePropertyName
to 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
CombineErrors
andCombineErrorsWithPrefix
. (#12) - Add
IsNil
. (#18) - Add
TabifyStringSlice
. (#13) - Add
StringSliceDistinct
andStringSliceHasDuplicates
. (#14) - Update
TruncateString
to 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
ToBoolPtr
to 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 asSafeString
except it also returns a success flag.