gopkg

command module
v0.0.0-...-483725b Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 3 Imported by: 0

README

gopkg

一些 Golang 开发时常用组件的封装

Installation

go get github.com/Hui4401/gopkg

组件

使用示例见 example.go

errors

在原始 error 的基础上添加了 code 属性,便于服务开发时的错误码传递

logs

基于 go.uber.org/zap 封装的日志组件

  • 方便的为 context 添加 log kv 信息,在打印日志时输出调用链上所有自定义添加的日志

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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