Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diegoclair/go_utils
Go utils with comon errors, dates, crypto and mysql errors
https://github.com/diegoclair/go_utils
Last synced: 15 days ago
JSON representation
Go utils with comon errors, dates, crypto and mysql errors
- Host: GitHub
- URL: https://github.com/diegoclair/go_utils
- Owner: diegoclair
- Created: 2020-04-25T00:31:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T03:30:27.000Z (3 months ago)
- Last Synced: 2024-11-14T13:53:48.477Z (about 2 months ago)
- Language: Go
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go_utils Package
![ci workflow](https://github.com/diegoclair/go_utils/actions/workflows/ci.yaml/badge.svg)
![GitHub tag](https://img.shields.io/github/tag/diegoclair/go_utils.svg)## Description
This package provides a collection of utility packages that assist with basic tasks in Go.
## Packages
### resterrors Package
This package provides a structure and functions for handling errors in a RESTful format. For more details, refer to the [resterrors README](./resterrors/README.md).
### mysqlutils Package
This package provides a function for handling MySQL errors and converting them into RESTful errors. For more details, refer to the [mysqlutils README](./mysqlutils/README.md).
### dateutils Package
This package provides functions for handling and formatting dates and times. For more details, refer to the [dateutils README](./dateutils/README.md).
### validator Package
This package provides a custom validator for Go structs, with additional validations for Brazilian CPF and CNPJ numbers. For more details, refer to the [validator README](./validator/README.md).### logger
This package provides a logging wrapper for the zap package with some extra functionality## Contribution
If you want to contribute, just open a PR and I'll validate it =]