blob: 61ba84e60a1395fb7db2eef37a088ef79d0b20d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!--
SPDX-FileCopyrightText: 2025 Stefan Majewsky <majewsky@gmx.net>
SPDX-License-Identifier: Apache-2.0
-->
# gg (Generic Generics)
A Go library for the generic types that should be in the standard library, but aren't.
Currently, this includes:
- an [Option](./option/) type similar to the one in Rust, and
- a [library](./refined/) for defining [refinement types](https://en.wikipedia.org/wiki/Refinement_type).
I may additional types like `Result`, `Either` or `Pair` if:
- there is a compelling usecase for myself, and
- an API can be built that is ergonomic in practice (this is the biggest reason why `Result` might never happen).
|