Version 2.0.0
Updated library to Go 1.18, migrated to and created new generic types and functions.
- new features:
- java-style optional type
optional.Optional[T]
- generic slice fuzzy function
fn.FuzzySlice[T comparable](needle, haystack []T) bool
- java-style optional type
- converted functions and types to 1.18 generics:
random.Randomizer[T]{}
slices.Sum[T Integer | Float](s []T) T
slices.Average[T Float](s []T) T
-- still uses moving average to help prevent overflowrandom.SecureRunes
->random.SecureSlice[T ~rune | ~byte](length int, set []T) ([]T, error)
gotil is licensed under the MIT License