pkg/

directory
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0

Directories

Path Synopsis
Package validator 提供零依赖 struct tag 校验和服务网关常用校验能力
Package validator 提供零依赖 struct tag 校验和服务网关常用校验能力
rule
Package rule 提供 Argus 的标签规则、跨字段规则和时间表达式能力
Package rule 提供 Argus 的标签规则、跨字段规则和时间表达式能力
schema
Package schema 提供轻量 JSON Schema 子集校验能力
Package schema 提供轻量 JSON Schema 子集校验能力
validate
Package validate 承载从 go-toolbox/pkg/validator 迁移而来的通用校验能力
Package validate 承载从 go-toolbox/pkg/validator 迁移而来的通用校验能力
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-10-27 09:53:20 * @FilePath: \go-toolbox\cachex\\advanced_cache.go * @Description: 高级缓存包装器,支持压缩和泛型,集成队列、热key和分布式锁功能 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-10-27 09:53:20 * @FilePath: \go-toolbox\cachex\\advanced_cache.go * @Description: 高级缓存包装器,支持压缩和泛型,集成队列、热key和分布式锁功能 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
examples command
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-19 20:53:00 * @FilePath: \go-toolbox\cachex\\examples\advanced_usage.go * @Description: go-cachex 高级功能使用示例 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-19 20:53:00 * @FilePath: \go-toolbox\cachex\\examples\advanced_usage.go * @Description: go-cachex 高级功能使用示例 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
examples/ctxcache command
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-09 21:12:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-09 21:45:21 * @FilePath: \go-toolbox\cachex\\examples\ctxcache\advanced.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-09 21:12:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-09 21:45:21 * @FilePath: \go-toolbox\cachex\\examples\ctxcache\advanced.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
examples/expiring command
* @Description: Expiring Cache 高级使用示例
* @Description: Expiring Cache 高级使用示例
examples/lru command
examples/lru_optimized command
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-09 22:45:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-09 22:45:00 * @FilePath: \go-toolbox\cachex\\examples\lru_optimized\basic.go * @Description: LRU优化版本客户端基础使用示例 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-09 22:45:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-09 22:45:00 * @FilePath: \go-toolbox\cachex\\examples\lru_optimized\basic.go * @Description: LRU优化版本客户端基础使用示例 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
examples/sharded command
* @Description: Sharded Cache 高级使用示例
* @Description: Sharded Cache 高级使用示例
examples/twolevel command
* @Description: TwoLevel Cache 高级使用示例
* @Description: TwoLevel Cache 高级使用示例
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-01-05 09:55:06 * @FilePath: \go-toolbox\pkg\contextx\core.go * @Description: Context 核心定义和构造函数 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-01-05 09:55:06 * @FilePath: \go-toolbox\pkg\contextx\core.go * @Description: Context 核心定义和构造函数 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-09 01:15:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-09 01:05:55 * @FilePath: \go-toolbox\pkg\convert\bytes.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-09 01:15:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-09 01:05:55 * @FilePath: \go-toolbox\pkg\convert\bytes.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-06-09 17:15:16 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-11 10:29:15 * @FilePath: \go-toolbox\pkg\crc\config.go * @Description: CRC算法配置库 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-06-09 17:15:16 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-11 10:29:15 * @FilePath: \go-toolbox\pkg\crc\config.go * @Description: CRC算法配置库 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-24 19:30:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-25 11:59:31 * @FilePath: \go-toolbox\pkg\cron\expression.go * @Description: Cron 表达式字段解析器 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-24 19:30:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-25 11:59:31 * @FilePath: \go-toolbox\pkg\cron\expression.go * @Description: Cron 表达式字段解析器 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-23 11:52:30 * @FilePath: \go-toolbox\pkg\desensitize\constants.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-23 11:52:30 * @FilePath: \go-toolbox\pkg\desensitize\constants.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-10 21:51:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-02-15 09:19:15 * @FilePath: \go-toolbox\pkg\errorx\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-10 21:51:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-02-15 09:19:15 * @FilePath: \go-toolbox\pkg\errorx\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-28 18:55:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-08-20 16:33:01 * @FilePath: \go-toolbox\pkg\httpx\client.go * @Description: HTTP 客户端实现 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-28 18:55:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-08-20 16:33:01 * @FilePath: \go-toolbox\pkg\httpx\client.go * @Description: HTTP 客户端实现 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
yamlloader
Package yamlloader 提供从 YAML 文件或字符串加载翻译消息的加载器
Package yamlloader 提供从 YAML 文件或字符串加载翻译消息的加载器
* @Author: kamalyes 501893067@qq.com * @Date: 2024-12-09 12:15:51 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-05-28 17:15:25 * @FilePath: \go-toolbox\pkg\imgix\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-12-09 12:15:51 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-05-28 17:15:25 * @FilePath: \go-toolbox\pkg\imgix\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-12-18 19:09:16 * @FilePath: \go-toolbox\pkg\json\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-12-18 19:09:16 * @FilePath: \go-toolbox\pkg\json\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-19 22:59:30 * @FilePath: \go-toolbox\pkg\logger\console.go * @Description: JavaScript console 风格的日志分组和表格功能 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-19 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-19 22:59:30 * @FilePath: \go-toolbox\pkg\logger\console.go * @Description: JavaScript console 风格的日志分组和表格功能 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-09 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-09 15:30:22 * @FilePath: \go-toolbox\pkg\mathx\bit.go * @Description: 位操作相关工具函数集,包含64位和大整数位掩码的生成与解析 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-09 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-09 15:30:22 * @FilePath: \go-toolbox\pkg\mathx\bit.go * @Description: 位操作相关工具函数集,包含64位和大整数位掩码的生成与解析 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-20 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-20 15:55:00 * @FilePath: \go-toolbox\pkg\metadata\accessor.go * @Description: 元数据访问器 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-20 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-20 15:55:00 * @FilePath: \go-toolbox\pkg\metadata\accessor.go * @Description: 元数据访问器 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-03 15:41:12 * @FilePath: \go-toolbox\pkg\moment\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-03 15:41:12 * @FilePath: \go-toolbox\pkg\moment\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\natsx\client.go * @Description: go-toolbox/pkg/natsx 客户端核心结构体 * * 纯易用性封装,不管理连接生命周期,只接受 *nats.Conn * 连接由调用方(如 go-rpc-gateway)负责创建和关闭 * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\natsx\client.go * @Description: go-toolbox/pkg/natsx 客户端核心结构体 * * 纯易用性封装,不管理连接生命周期,只接受 *nats.Conn * 连接由调用方(如 go-rpc-gateway)负责创建和关闭 * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-09-18 17:22:25 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-21 16:09:51 * @FilePath: \go-toolbox\pkg\netx\ip.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-09-18 17:22:25 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-21 16:09:51 * @FilePath: \go-toolbox\pkg\netx\ip.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\client.go * @Description: go-toolbox/pkg/ossx 对象存储易用性封装客户端 * * 纯易用性封装,不管理连接生命周期 * 连接由调用方(如 go-rpc-gateway)负责创建和关闭 * 通过 Adapter 适配器模式支持 MinIO / AWS S3 / 阿里云 OSS / 腾讯云 COS / Cloudflare R2 Worker * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\client.go * @Description: go-toolbox/pkg/ossx 对象存储易用性封装客户端 * * 纯易用性封装,不管理连接生命周期 * 连接由调用方(如 go-rpc-gateway)负责创建和关闭 * 通过 Adapter 适配器模式支持 MinIO / AWS S3 / 阿里云 OSS / 腾讯云 COS / Cloudflare R2 Worker * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
adapter/minio
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\adapter\minio\minio.go * @Description: MinIO 对象存储适配器 * * 基于 minio-go/v7 实现 ossx.Adapter 接口 * 支持:预签名上传/下载、对象 CRUD、桶存在判断 * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\adapter\minio\minio.go * @Description: MinIO 对象存储适配器 * * 基于 minio-go/v7 实现 ossx.Adapter 接口 * 支持:预签名上传/下载、对象 CRUD、桶存在判断 * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
adapter/r2
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\adapter\r2\r2.go * @Description: Cloudflare R2 Worker 对象存储适配器 * * 通过 Cloudflare Worker 代理访问 R2 存储 * 使用 AES-CBC-PKCS7 加密签名保证安全性 * 仅支持:预签名上传地址、上传对象(其他操作通过 Worker API 扩展) * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-04-23 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-04-23 00:00:00 * @FilePath: \go-toolbox\pkg\ossx\adapter\r2\r2.go * @Description: Cloudflare R2 Worker 对象存储适配器 * * 通过 Cloudflare Worker 代理访问 R2 存储 * 使用 AES-CBC-PKCS7 加密签名保证安全性 * 仅支持:预签名上传地址、上传对象(其他操作通过 Worker API 扩展) * * Copyright (c) 2026 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-04 19:31:22 * @FilePath: \go-toolbox\pkg\osx\base.go * @Description: 操作系统相关工具函数 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-04 19:31:22 * @FilePath: \go-toolbox\pkg\osx\base.go * @Description: 操作系统相关工具函数 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
Package pbmo 在 protobuf 生成结构体与领域/GORM 模型之间做字段映射转换
Package pbmo 在 protobuf 生成结构体与领域/GORM 模型之间做字段映射转换
Package protox 收口 go-toolbox 中真正需要 google.golang.org/protobuf 的反射辅助 分出来的目的:pkg/types 被 mathx / convert / syncx 等大量基础包依赖,一旦它引入 protobuf,所有使用者(go-cachex、go-toolbox/pkg/i18n 等)都会被动承担 30+ 个 protobuf 包
Package protox 收口 go-toolbox 中真正需要 google.golang.org/protobuf 的反射辅助 分出来的目的:pkg/types 被 mathx / convert / syncx 等大量基础包依赖,一旦它引入 protobuf,所有使用者(go-cachex、go-toolbox/pkg/i18n 等)都会被动承担 30+ 个 protobuf 包
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-20 10:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-01-20 10:00:00 * @FilePath: \go-toolbox\pkg\queue\bounded_queue.go * @Description: * BoundedQueue 是一个有界队列实现,支持最小/最大容量限制、自动扩缩容、阻塞/非阻塞操作 * 采用智能增长策略:小容量快速增长(2x),中容量渐进增长(1.5x),大容量固定增量 * 适用于需要流量控制、内存保护的高并发场景 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-20 10:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-01-20 10:00:00 * @FilePath: \go-toolbox\pkg\queue\bounded_queue.go * @Description: * BoundedQueue 是一个有界队列实现,支持最小/最大容量限制、自动扩缩容、阻塞/非阻塞操作 * 采用智能增长策略:小容量快速增长(2x),中容量渐进增长(1.5x),大容量固定增量 * 适用于需要流量控制、内存保护的高并发场景 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-08-05 10:50:01 * @FilePath: \go-toolbox\pkg\random\business.go * @Description: 生成业务相关的随机数据 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-08-05 10:50:01 * @FilePath: \go-toolbox\pkg\random\business.go * @Description: 生成业务相关的随机数据 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-16 22:55:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-16 22:55:55 * @FilePath: \go-toolbox\pkg\safe\mathx.go * @Description: 安全的数学工具函数集合,提供各种数学算法的安全实现 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-16 22:55:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-16 22:55:55 * @FilePath: \go-toolbox\pkg\safe\mathx.go * @Description: 安全的数学工具函数集合,提供各种数学算法的安全实现 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-02-28 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-05-13 13:15:15 * @FilePath: \go-toolbox\pkg\serializer\json.go * @Description: JSON解析和转换工具 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-02-28 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-05-13 13:15:15 * @FilePath: \go-toolbox\pkg\serializer\json.go * @Description: JSON解析和转换工具 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-23 17:37:08 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-10-23 17:58:07 * @FilePath: \go-toolbox\pkg\sign\aes.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-23 17:37:08 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-10-23 17:58:07 * @FilePath: \go-toolbox\pkg\sign\aes.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-11 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-05-08 15:11:22 * @FilePath: \go-toolbox\pkg\sqlbuilder\types.go * @Description: 类型重导出兼容层 - 保持 sqlbuilder.MapAny 等外部引用不变 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-11 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-05-08 15:11:22 * @FilePath: \go-toolbox\pkg\sqlbuilder\types.go * @Description: 类型重导出兼容层 - 保持 sqlbuilder.MapAny 等外部引用不变 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
constants
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-30 00:00:00 * @FilePath: \go-toolbox\pkg\sqlbuilder\constants\database.go * @Description: 数据库类型常量定义 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-30 00:00:00 * @FilePath: \go-toolbox\pkg\sqlbuilder\constants\database.go * @Description: 数据库类型常量定义 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
db
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-11 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-23 13:05:48 * @FilePath: \go-toolbox\pkg\sqlbuilder\db\handler.go * @Description: 数据库处理器 - Handler 接口和 GORM 实现 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-11-11 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-23 13:05:48 * @FilePath: \go-toolbox\pkg\sqlbuilder\db\handler.go * @Description: 数据库处理器 - Handler 接口和 GORM 实现 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
errors
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-13 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-13 10:26:53 * @FilePath: \go-toolbox\pkg\sqlbuilder\errors\checker.go * @Description: 数据库错误检测工具函数 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-12-13 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-13 10:26:53 * @FilePath: \go-toolbox\pkg\sqlbuilder\errors\checker.go * @Description: 数据库错误检测工具函数 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
repository
* @Author: kamalyes 501893067@qq.com * @Date: 2025-07-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-07-30 13:26:08 * @FilePath: \go-toolbox\pkg\sqlbuilder\repository\async_batch_writer.go * @Description: 通用异步批量写入器,适用于高频写入低频查询的场景(如 ClickHouse 日志表) * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-07-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-07-30 13:26:08 * @FilePath: \go-toolbox\pkg\sqlbuilder\repository\async_batch_writer.go * @Description: 通用异步批量写入器,适用于高频写入低频查询的场景(如 ClickHouse 日志表) * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
types
* @Author: kamalyes 501893067@qq.com * @Date: 2026-07-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-07-30 00:00:00 * @FilePath: \go-toolbox\pkg\sqlbuilder\types\compressed.go * @Description: 数据库压缩存储类型——字段级透明 gzip 压缩,多 DB 方言适配 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2026-07-30 00:00:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2026-07-30 00:00:00 * @FilePath: \go-toolbox\pkg\sqlbuilder\types\compressed.go * @Description: 数据库压缩存储类型——字段级透明 gzip 压缩,多 DB 方言适配 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-27 23:55:26 * @FilePath: \go-toolbox\pkg\stringx\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2023-07-28 00:50:58 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-11-27 23:55:26 * @FilePath: \go-toolbox\pkg\stringx\base.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-05 15:08:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-01-09 15:07:15 * @FilePath: \go-toolbox\pkg\syncx\atomic.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-05 15:08:55 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-01-09 15:07:15 * @FilePath: \go-toolbox\pkg\syncx\atomic.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-23 09:11:20 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-24 18:59:29 * @FilePath: \go-toolbox\pkg\types\bound.go * @Description: 边界和范围相关的类型定义 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-01-23 09:11:20 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-24 18:59:29 * @FilePath: \go-toolbox\pkg\types\bound.go * @Description: 边界和范围相关的类型定义 * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-06-17 13:15:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-17 13:55:17 * @FilePath: \go-toolbox\pkg\units\constants.go * @Description: 单位常量及单位映射定义 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-06-17 13:15:00 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-06-17 13:55:17 * @FilePath: \go-toolbox\pkg\units\constants.go * @Description: 单位常量及单位映射定义 * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-04-21 13:58:25 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-04-23 11:25:40 * @FilePath: \go-toolbox\pkg\useragent\consts.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2025-04-21 13:58:25 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-04-23 11:25:40 * @FilePath: \go-toolbox\pkg\useragent\consts.go * @Description: * * Copyright (c) 2025 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-24 11:25:16 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-04 18:26:12 * @FilePath: \go-toolbox\pkg\zipx\zlib.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-10-24 11:25:16 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2025-12-04 18:26:12 * @FilePath: \go-toolbox\pkg\zipx\zlib.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.

Jump to

Keyboard shortcuts

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