goutil

module
v0.0.0-...-e1eb702 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: MIT

README

goutil Go Reference Go Report

goutil is a set of toolkits designed to simplify golang development.

  • arena A simple memory arena allocator.
  • either The Either with variants Left and Right is a general purpose sum type with two cases.
  • opt Optional values.
  • res Error handling with the Result type.
  • tuple A finite heterogeneous sequence, (T0, T1, ..).
  • untrust Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.
  • xiter Provides utilities for enhanced iteration patterns and helpers.

Package

arena Go Reference

Package arena provides a low-level, relatively unsafe arena allocation abstraction, inspired by the article Cheating the Reaper in Go.

either Go Reference

The Either with variants Left and Right is a general purpose sum type with two cases.

opt Go Reference

Optional values.

res Go Reference

Error handling with the Result type.

tuple Go Reference

A finite heterogeneous sequence, (T0, T1, ..).

untrust Go Reference

Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.

xiter Go Reference

Provides utilities for enhanced iteration patterns and helpers.

Directories

Path Synopsis
internal
pkg
arena
Package arena provides a low-level, relatively unsafe arena allocation abstraction for high-performance memory management.
Package arena provides a low-level, relatively unsafe arena allocation abstraction for high-performance memory management.
arena/art
Package art provides an efficient, memory-optimized implementation of Adaptive Radix Trees (ART).
Package art provides an efficient, memory-optimized implementation of Adaptive Radix Trees (ART).
arena/art/node
Package node implements the core node types for an Adaptive Radix Tree (ART).
Package node implements the core node types for an Adaptive Radix Tree (ART).
arena/art/simd
Package simd provides SIMD-optimized functions for the ART tree implementation.
Package simd provides SIMD-optimized functions for the ART tree implementation.
either
Package either provides a generic Either type implementation that represents a value of one of two possible types (a disjoint union).
Package either provides a generic Either type implementation that represents a value of one of two possible types (a disjoint union).
opt
Optional values.
Optional values.
res
Error handling with the Result type.
Error handling with the Result type.
tuple
A finite heterogeneous sequence, (T0, T1, ..).
A finite heterogeneous sequence, (T0, T1, ..).
untrust
Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.
Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.
xiter
Package xiter provides utilities for enhanced iteration patterns and helpers.
Package xiter provides utilities for enhanced iteration patterns and helpers.
xunsafe
Package unsafe provides a more convenient interface for performing unsafe operations than Go's built-in package unsafe.
Package unsafe provides a more convenient interface for performing unsafe operations than Go's built-in package unsafe.
xunsafe/layout
Package layout includes helpers for working with type layouts.
Package layout includes helpers for working with type layouts.
zc
Package zc provides helpers for working with zero-copy ranges.
Package zc provides helpers for working with zero-copy ranges.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL