Categorygithub.com/brpaz/lib-go
repository
0.0.0-20241221112132-06f9af878c14
Repository: https://github.com/brpaz/lib-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

lib-go

A library of reusable code for my personal Go projects.

πŸ’‘ Motivation

When creating Go projects, there are some code blocks and keep repeating in every project. Ex: Logging, glue code, utilities, etc.

The purpose of this repo, is to provide a personal library of that shared code, so I stop having to repeat it in all the my projects.

πŸ“‹ What is included

  • Logger
  • Tracing Setup with for OpenTelemetry
  • Health checks
  • Database and Migrations
  • Misc utils to work with Pointers, time and more

πŸ“¦ Dependencies

One of the great features of Go is itΒ΄s rich standard library. This library tries to use standard library functions (Ex: net/http) to make it compatible with different projects and reduce the number of external dependencies.

Still, this is an opinionated library and some abstractions requires external dependencies. (Ex: zap for logging).

πŸš€ Getting started

Install

go get github.com/brpaz/lib-go

Usage

Each package includes a README.md file generated by Gomarkdoc, with includes documentation and examples for that package.