package
0.0.0-20241128081326-8e1e2e47dd97
Repository: https://github.com/chenpeicheng3804/go-utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package log provides a global logger for zerolog.

# Functions

ErgodicPathFile 遍历指定目录下的所有文件,并根据条件筛选出文件。 Path: 需要遍历的目录路径。 Condition: 筛选文件的正则表达式条件。 返回值: 筛选后的FileProcessor实例和可能发生的错误。.
GetGoroutineID 获取协程ID.
GetIps 提取网卡ip.
创建CsvData对象.
NewFileProcessor 创建一个新的FileProcessor实例。 condition: 筛选文件的正则表达式条件。 返回值: 初始化后的FileProcessor指针。.
NewSm2Cert 用于创建一个新的SM2证书实例 CertName: 证书名称,不包含文件扩展名 CertPath: 证书文件存储的路径,必须以"/"结尾 返回值: 初始化后的Sm2Crypt指针.
No description provided by the author
定义一个函数Pinyin,接收一个字符串参数s,返回一个拼音字符串pinyinName.
逐行读取文件内容 返回字符串切片.
VerSm2Sig 验证SM2公钥是否能正确验证消息的签名。 它接受公钥、消息和签名作为参数,并返回一个布尔值, 表示签名是否通过验证。 参数: pub - SM2公钥,用于验证签名。 msg - 要验证的消息数据。 sign - 消息的签名,用于公钥验证。 返回值: bool - 签名验证结果,true表示验证通过,false表示验证失败。.

# Variables

条件不能为空.
路径不能为空.
路径不存在.

# Structs

No description provided by the author
CsvDataInfo.
假设的File类型定义,增加了Mutex保护和更明确的字段名称.
No description provided by the author
No description provided by the author
No description provided by the author