crestal-go-utils

module
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT

README

Crestal Go Utils

This package provides a toolbox for crestal golang projects.
In these utilities, we prioritize the 12-factor principles.

go report card MIT license Go.Dev reference

Logger

this package use standard slog package for logging, so if you set the global default logger anywhere, it will be used by this package.

  slog.SetDefault(YOUR_LOGGER)

xlog

A wrapper around the standard slog package that offers a New function for easily creating a logger.

xconfig

Load configuration from environment variables, docker/k8s secrets, aws systems manager or secret manager.

xerr

A custom error type which implements the error interface and provides additional information about the error.

xfiber

Utilities for fiber web framework.

xutils

Utilities for general purpose.

Directories

Path Synopsis
Package xconfig can load config from shell env variables, aws ssm and docker/k8s secrets.
Package xconfig can load config from shell env variables, aws ssm and docker/k8s secrets.
Package xdb is a simple wrapper for gorm client creation, it will create a gorm.DB with options
Package xdb is a simple wrapper for gorm client creation, it will create a gorm.DB with options
Package xerr is custom error type of Crestal Network.
Package xerr is custom error type of Crestal Network.
Package xfiber contains utilities for fiber framework
Package xfiber contains utilities for fiber framework
Package xlog is a simple wrapper for slog, it will create a slog.Logger with options
Package xlog is a simple wrapper for slog, it will create a slog.Logger with options
Package xutils is a utility package, it contains some utility functions.
Package xutils is a utility package, it contains some utility functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL