RTLabs Std Go Lib Addons
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| bitmask | ||
| enum | ||
| enumtype | ||
| nullable | ||
| sizetype | ||
| strtype | ||
| uint128 | ||
| .gitignore | ||
| .markdownlint-cli2.jsonc | ||
| .nwa-config.yaml | ||
| base.go | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| SECURITY.md | ||
RTLabs Collection of Useful Types
Summary
A collection of useful Go Types, some leverage Go Generics to provide a broad set of flexible usecases.
Types Provided
The following highlight the available types implemented within this library:
- core - A series of core types, includes primatives to allow for more descriptive use of pointers with core types such as bool, string as well as user created types. Allow creation and testing of 'zero value' versions of core types and user defined types, testing for nil and empty containers for core and user types.
- unit128 - 128 Unsigned Integer type, implements the uint128 type used by the net/netip IP Addressing library. Provides the same underlying interface as that from the library allowing access to the same underlying primative the netip library uses under the hood
- enumtype - Enum parameter type to be used alongside the Cobra cli library to enable complete enum based parameter types as well as complex enum types for internal flags within an application
- bitmask - provides BitMask, BitMask64, and BitMask8 types, with functional getters and setters. Useful for compact flags for use within applications and wire protocols.
- enum - Enum data type, provides a generics base enum type similar to the one provided by enumtype but designed for more general use and not tied to the Cobra cli library
- nullable - nullable implements a data type that can distinguish between three states when used within JSON or similar marshalled data sources, field is present with a non-nil value, field is present but explicitly set to null in JSON, field is omitted from JSON entirely
Copyright and License
Code and Documentation Copyright © 1994-2026, Stephen Kapp and Reaper Technologies Limited. All Rights Reserved.