https://github.com/marlaone/shepard
Library to achieve higher typesafety in Go by implementing the Result and Option enums of Rust. Powered with Go Generics.
https://github.com/marlaone/shepard
generics go golang library safety types
Last synced: 6 months ago
JSON representation
Library to achieve higher typesafety in Go by implementing the Result and Option enums of Rust. Powered with Go Generics.
- Host: GitHub
- URL: https://github.com/marlaone/shepard
- Owner: marlaone
- Created: 2022-11-01T21:04:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-02T16:53:31.000Z (over 2 years ago)
- Last Synced: 2024-06-20T10:21:31.887Z (about 2 years ago)
- Topics: generics, go, golang, library, safety, types
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Marla.ONE // Shepard
Guards the security of your data types.
**Work In Progress**
## Description
Library to achieve higher typesafety in Go by implementing the [Result](https://doc.rust-lang.org/std/result/enum.Result.html) and [Option](https://doc.rust-lang.org/std/option/enum.Option.html) enums of Rust. Powered with Go Generics.
## Packages
### [num](https://github.com/marlaone/shepard/tree/main/num)
Implements checked implementation for mul/div/add/sub to keep you save from overflows.
### [option](https://github.com/marlaone/shepard/tree/main/option)
Package with helper functions to map or check Options of two different types.
### [result](https://github.com/marlaone/shepard/tree/main/result)
Package with helper functions to map or check Result of two different types.
### [shepard_json](https://github.com/marlaone/shepard/tree/main/shepard_json)
Package implements types to json.(Un-)Marshal Results or Options.
### [iter](https://github.com/marlaone/shepard/tree/main/iter)
Package implements a type safe generic Iterator for any slices.
### [collections](https://github.com/marlaone/shepard/tree/main/collections)
Package implements a type safe generic collections for any types.
### [http](https://github.com/marlaone/shepard/tree/main/http)
Package implements a type safe http server with router and middlewares.