Releases: enetx/g
Releases · enetx/g
v1.0.225
v1.0.224
v1.0.223
v1.0.222
v1.0.221
v1.0.220
feat(option): add Filter, Or, OrElse, IsSomeAnd and mutating methods - Add Filter for conditional value filtering - Add Or/OrElse for providing fallback Options - Add IsSomeAnd to check value against predicate - Add Insert, GetOrInsert(+With) for mutable value management - Add Take and Replace for value extraction/swap - Add OkOr/OkOrElse to convert Option to Result - Add FromPtr and Ptr for pointer conversions
v1.0.219
v1.0.217
v1.0.216
feat(print): add {wrap} modifier to Errorf for error chain support
Errorf now supports a {wrap} modifier that simultaneously formats an
error value into the message and wraps it in the returned error,
enabling errors.Is / errors.As to traverse the chain.
Supported forms:
{.wrap} — auto-index
{1.wrap} — positional
{name.wrap} — named
multiple {wrap} references wrap multiple errors
Add wrappedError type (Unwrap() []error) to errors.go.
Add TestErrorf covering all forms and edge cases.
Add examples/print/ with basic, format, and errorf examples.
v1.0.215
perf: optimize deque, heap, map, slice, and string internals - Deque: extract copyToContiguous helper using copy/clear builtins, replace per-element realIndex loops with direct range slices in Iter, Contains, and String; bulk-copy in DequeOf, Clone, Reserve, ShrinkToFit, MakeContiguous, Slice - Heap: switch to heapify for bulk Push (O(n) vs O(n log n)) - Map: build MapOrd via direct append instead of Insert in Ordered() - MapOrd: replace iterator chains with direct loops and pre-allocated slices in Map, Safe, Keys, Values - Slice: remove closure in SubSlice loop condition; two explicit loops - Slice.Iter: use copy instead of SeqSlice.Collect in SeqSlices.Collect - String: cache .Std() conversions outside hot loops in Chunks, Truncate, writePadding; use rand.N + []byte for default Random charset; inline f.Contains/StartsWith/EndsWith as strings.* - f: cache type conversions outside closures in Contains, ContainsAnyChars, StartsWith, EndsWith - Tests: add TestMapOrdKeys, TestMapOrdToMap, TestMapOrdToSafe