gokit

package module
v0.0.0-...-0cba330 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 0 Imported by: 0

README

go-kit

go 自用组件

errs

错误处理相关

debounce

chan 消抖

ds

stack

list

从标准库抄的,改成了泛型

testtool

go test 时用的断言工具

Documentation

Overview

gokit 是自用的一些go包 包含了:

- 错误处理 - 数据结构 - 日志

Directories

Path Synopsis
debounce 用于消抖
debounce 用于消抖
ds
list
list 接口参考标准库,使用泛型避免类型断言
list 接口参考标准库,使用泛型避免类型断言
stack
stack 实现栈
stack 实现栈
errs 用于错误处理相关的处理, 和 fmt.Errorf 相比,能记录一些调用栈
errs 用于错误处理相关的处理, 和 fmt.Errorf 相比,能记录一些调用栈
example
logs command
logs 实现 slog 的 handler
logs 实现 slog 的 handler
testtool 测试相关工具
testtool 测试相关工具

Jump to

Keyboard shortcuts

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