Skip to content

Releases: enetx/g

v1.0.225

06 Jun 14:33

Choose a tag to compare

remove MapResult

v1.0.224

08 Apr 09:21

Choose a tag to compare

fix FlattenResult

v1.0.223

28 Mar 19:23

Choose a tag to compare

feat(iter): add Flatten/FlattenResult, fix Float.String to use decima…

v1.0.222

08 Mar 19:54

Choose a tag to compare

ErrSeq, OkSeq

v1.0.221

27 Feb 19:53

Choose a tag to compare

refactor(print): replace .type/.debug/.wrap modifiers with format spe…

v1.0.220

25 Feb 12:06

Choose a tag to compare

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

24 Feb 20:32

Choose a tag to compare

refactor(encoding): introduce Encode/Decode wrappers and simplify Res…

v1.0.217

23 Feb 17:47

Choose a tag to compare

feat(pool): preserve submission order in Wait results

Wait now iterates results by task index (0..totalTasks-1) instead of
unordered MapSafe iteration, guaranteeing results match submission order.

v1.0.216

21 Feb 09:24

Choose a tag to compare

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

20 Feb 17:24

Choose a tag to compare

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