Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

upfluence/pkg

Open more actions menu

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.