chimera

module
v3.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0

README

richelieu-yang/chimera

Golang的工具类.

手动更新ip库(ip2region.xdb)

src: https://github.com/lionsoul2014/ip2region/blob/master/data/ip2region.xdb
dest: resource/ip2region/ip2region.xdb

!!!: 业务项目

(1) 安装此依赖

PS: 如果安装失败(因为部分依赖 i/o timeout等原因),可以考虑更改环境变量GOPROXY,比如切换为阿里的代理( https://mirrors.aliyun.com/goproxy/ ).
命令: go get github.com/richelieu42/chimera

(2) 在main()所在的.go文件中,通过"import _"导入一些包
  • logrusInitKit(最优先,应该在最上面)
  • jsonKit
  • 业务自己的 config 包

参考

(1) duke-git/lancet 官方API说明 https://www.golancet.cn/api/overview.html 支持300+常用功能的开源GO语言工具函数库 https://mp.weixin.qq.com/s?__biz=MzA4ODg0NDkzOA==&mid=2247498172&idx=1&sn=461d8429c094189f4e10732d00805339 github(3.2k): https://github.com/duke-git/lancet/blob/main/README_zh-CN.md (2) samber/lo Golang.wps github(14.2k): https://github.com/samber/lo (3) GoFramev2 https://goframe.org/pages/viewpage.action?pageId=1114859 github(10.4k): https://github.com/gogf/gf

TODOs

github.com/duke-git/lancet/v2 v2.2.9 开始有问题 https://github.com/duke-git/lancet/issues/166

Directories

Path Synopsis
resources
Code generated for package resources by go-bindata DO NOT EDIT.
Code generated for package resources by go-bindata DO NOT EDIT.
src
Package redisKit
component/web/ginKit
Package ginKit
Package ginKit
component/web/httpKit
Package httpKit
Package httpKit
config/viperKit
Package viperKit
Package viperKit
consts
Package consts 本库的全局常量.
Package consts 本库的全局常量.
consts/httpStatusCode
Package httpStatusCode 自定义的http状态码
Package httpStatusCode 自定义的http状态码
core/byteKit
Package byteKit
Package byteKit
core/errorKit
Package errorKit
Package errorKit
core/floatKit
Package floatKit
Package floatKit
core/pathKit
Package pathKit
Package pathKit
core/runtimeKit
Package runtimeKit 主要是对如下包的封装:"runtime"
Package runtimeKit 主要是对如下包的封装:"runtime"
core/strKit
Package strKit
Package strKit
crypto/aes/aesKit1
Package aesKit
Package aesKit
micro/raft/raftKit
Package raftKit
Package raftKit
netKit
Package netKit
Package netKit
serialize/json/jsonRespKit
Package jsonRespKit
Package jsonRespKit

Jump to

Keyboard shortcuts

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