https://github.com/upfluence/pkg
https://github.com/upfluence/pkg
kind-lib lib
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/upfluence/pkg
- Owner: upfluence
- Created: 2015-09-18T21:13:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T09:42:29.000Z (about 1 year ago)
- Last Synced: 2025-03-28T06:51:15.614Z (about 1 year ago)
- Topics: kind-lib, lib
- Language: Go
- Homepage:
- Size: 10.3 MB
- Stars: 10
- Watchers: 11
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# `pkg`
This repository holds commonly used packages that provide various self-contained utilities and business logic helpers.
Here is a brief summary of a selection of packages:
### `pkg/log`
Provides a ready-to-use logger that reports to Sentry by default, wraps `"github.com/upfluence/log"` behind the scenes.
### `pkg/timeutil` & `pkg/timeutil/timetest`
Wraps commonly used time functions so that they can be easily mocked later.
### `pkg/group`
Facilitates a common concurrency pattern by spawning a groups of goroutines working on a same task.
Handles error cancellation and propagation.
### `pkg/cfg`
Fetches custom values from environment variables, or default values if they don't exist.
### `pkg/currency`
Abstracts the money type and provides an interface, a default implementation (based on the EU central bank API) and helpers to exchange amounts of money to various currencies
### `pkg/slices`
Provides common operations on slices missing from `"slices"`.
### `pkg/pointers`
Can return a pointer to a value. And other pointer stuff.