Discover Packages
github.com/sweetrpg/common.go
module
Version:
v0.0.16
Opens a new window with list of versions in this module.
Published: Jul 22, 2026
License: MIT
Opens a new window with license information.
README
README
¶
common.go
Dependency-free utility packages shared across sweetrpg's Go services and libraries: generic
slice mapping, environment variable helpers, structured logging setup, and common constants.
It sits at the base of the platform's Go dependency graph - nearly every other sweetrpg Go
module depends on it directly or transitively.
Install
go get github.com/sweetrpg/common.go
Packages
util - GetEnv/GetEnvInt (environment variable helpers with defaults), Map/NullMap
(generic slice transforms)
logging - Init() configures a logf-backed logger from the LOG_LEVEL environment
variable; Logger is the shared instance
constants - environment variable names and log-level values used by the packages above
Documentation
Package documentation: pkg.go.dev/github.com/sweetrpg/common.go .
Test coverage reports are published to sweetrpg.github.io/common.go
on every merge to develop.
Contributing
See CONTRIBUTING.md for the development workflow and
RELEASE.md for how versions get cut.
Expand ▾
Collapse ▴
Directories
¶
Package constants adds constants for SweetRPG projects.
Package constants adds constants for SweetRPG projects.
Package logging provides logging setup and configuration.
Package logging provides logging setup and configuration.
Package util adds some utility functions.
Package util adds some utility functions.
Click to show internal directories.
Click to hide internal directories.