https://github.com/spotlibs/go-lib
Standardized reuseable pkg for Go
https://github.com/spotlibs/go-lib
golang goravel pkg standarization
Last synced: about 2 months ago
JSON representation
Standardized reuseable pkg for Go
- Host: GitHub
- URL: https://github.com/spotlibs/go-lib
- Owner: spotlibs
- License: mit
- Created: 2024-07-22T11:10:57.000Z (almost 2 years ago)
- Default Branch: beta/release-v1
- Last Pushed: 2026-02-23T10:28:33.000Z (2 months ago)
- Last Synced: 2026-02-23T19:04:35.149Z (2 months ago)
- Topics: golang, goravel, pkg, standarization
- Language: Go
- Homepage:
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security/string_mask.go
Awesome Lists containing this project
README

[](https://github.com/spotlibs/go-lib/actions)
# Go Library
Reusable go library that mostly implement standardization in the scope of Spotlibs team
Currently, pkg that are already considered has stable API are
- `stderr`: standard interface for any error that may occur in the Spotlibs Team Microservices
- `stdresp`: standard interface to construct standard response
- `validation`: ease validating request for `Goravel` framework
- `debug`: capture stack trace
- `middleware`: consist of some useful and important predefined middlewares
- `activity monitor`: capture and log all incoming & outgoing http request/response. Can properly record request body with content-type `application/json`, `application/x-www-form-urlencoded` & `multipart/form-data`
- `metadata header`: set `http.Context` with metadata information coming from the request header
- `recover`: do recover on panic that occur during processing request in `Goravel` with properly giving back appropriate `stdresp`