https://github.com/flier/goutil
goutil is a set of toolkits designed to simplify Golang development.
https://github.com/flier/goutil
Last synced: 12 months ago
JSON representation
goutil is a set of toolkits designed to simplify Golang development.
- Host: GitHub
- URL: https://github.com/flier/goutil
- Owner: flier
- License: mit
- Created: 2025-08-10T02:31:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-18T04:45:52.000Z (12 months ago)
- Last Synced: 2025-08-18T06:31:09.102Z (12 months ago)
- Language: Go
- Homepage:
- Size: 479 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goutil [](https://pkg.go.dev/github.com/flier/goutil) [](https://goreportcard.com/report/github.com/flier/goutil)
`goutil` is a set of toolkits designed to simplify golang development.
- [arena](#arena) A simple memory arena allocator.
- [either](#either) The Either with variants Left and Right is a general purpose sum type with two cases.
- [opt](#opt) Optional values.
- [res](#res) Error handling with the Result type.
- [tuple](#tuple) A finite heterogeneous sequence, (T0, T1, ..).
- [untrust](#untrust) Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.
- [xiter](#xiter) Provides utilities for enhanced iteration patterns and helpers.
## Package
### arena [](https://pkg.go.dev/github.com/flier/goutil/pkg/arena)
Package `arena` provides a low-level, relatively unsafe arena allocation abstraction, inspired by the article [Cheating the Reaper in Go](https://mcyoung.xyz/2025/04/21/go-arenas/).
### either [](https://pkg.go.dev/github.com/flier/goutil/pkg/either)
The Either with variants Left and Right is a general purpose sum type with two cases.
### opt [](https://pkg.go.dev/github.com/flier/goutil/pkg/opt)
Optional values.
### res [](https://pkg.go.dev/github.com/flier/goutil/pkg/res)
Error handling with the Result type.
### tuple [](https://pkg.go.dev/github.com/flier/goutil/pkg/tuple)
A finite heterogeneous sequence, (T0, T1, ..).
### untrust [](https://pkg.go.dev/github.com/flier/goutil/pkg/untrust)
Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs.
### xiter [](https://pkg.go.dev/github.com/flier/goutil/pkg/xiter)
Provides utilities for enhanced iteration patterns and helpers.