tools

package module
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 13 Imported by: 0

README

Hi there 👋

It is library with dev tools for Go

Description

It contains wrappers over postgres, redis and other clients. There are also convenient wrappers over slog, net/http, goose. In addition, tools contains our favorite package "e" ("error"), which allows you to handle errors more flexibly.

Getting Started

To add tools to your Go modules run:

go get github.com/nikitaSstepanov/tools

Features

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigPath = "config/config.yaml"
)

Functions

func Coder

func Coder() *coder.Coder

func HttpServer

func HttpServer(handler http.Handler) *httper.Server

func Init

func Init(useDotenv bool, path ...string) error

func Mail

func Mail() *mail.Client

func Pg

func Pg() (pg.Client, error)

func Redis

func Redis() (redis.Client, error)

func Sl

func Sl() *sl.Logger

Types

This section is empty.

Directories

Path Synopsis
client
pg
sl
utils

Jump to

Keyboard shortcuts

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