RTLabs Std Go Lib Addons
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-22 16:19:50 +01:00
.github/workflows feat: brought over, enum related types, unint128, some base types and nullable 2026-08-29 19:56:18 +01:00
bitmask chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
enum chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
enumtype chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
nullable chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
sizetype feat: added Decimal + Binary bit & bytes string type 2026-09-22 16:18:33 +01:00
strtype feat: added network addressing string types for ipv4, ipv6, cidr and mac addresses. 2026-09-22 16:19:50 +01:00
uint128 chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
.gitignore init: initial framework commit for library 2026-08-29 19:51:01 +01:00
.markdownlint-cli2.jsonc init: initial framework commit for library 2026-08-29 19:51:01 +01:00
.nwa-config.yaml feat: added network addressing string types for ipv4, ipv6, cidr and mac addresses. 2026-09-22 16:19:50 +01:00
base.go chore: changed copyright header to new format, removed problematic completions test pending implementing a better test method 2026-09-22 16:14:46 +01:00
go.mod feat: brought over, enum related types, unint128, some base types and nullable 2026-08-29 19:56:18 +01:00
go.sum feat: brought over, enum related types, unint128, some base types and nullable 2026-08-29 19:56:18 +01:00
README.md chore: added highlevel reference info to readme 2026-09-06 16:47:29 +01:00
SECURITY.md init: initial framework commit for library 2026-08-29 19:51:01 +01:00

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

Code and Documentation Copyright © 1994-2026, Stephen Kapp and Reaper Technologies Limited. All Rights Reserved.