Skip to content

Latest commit

 

History

History
1077 lines (651 loc) · 15.4 KB

changelog.md

File metadata and controls

1077 lines (651 loc) · 15.4 KB

Changelog

All notable changes to this project will be documented in this file.

[v0.4.9]- 2025-01-09

Added

  • none

Fixed

  • none

Changed

  • 修改KEncr.AuthCode,返回结果增加error

Removed

  • none

[v0.4.8]- 2024-12-15

Added

  • none

Fixed

  • 修改darwin的KOS.GetBiosInfo,返回空信息,因为苹果系统无BIOS.

Changed

  • 修改一些单元测试和注释

Removed

  • none

[v0.4.7]- 2024-03-06

Added

  • none

Fixed

  • none

Changed

  • 修改KTime.Str2Timestruct,将format参数改为option,以支持UTC和本地时区
  • 修改KTime.Str2Timestamp,将format参数改为option,以支持UTC和本地时区
  • 修改KTime.IsDate2time,增加参数option,以支持UTC和本地时区

Removed

  • none

[v0.4.6]- 2023-10-21

Added

  • none

Fixed

  • 修复isUrl,字符串是否URL
  • 修复KStr.RemoveBefore,移除before之前的字符串
  • 修复KStr.RemoveAfter,移除after之后的字符串

Changed

  • 优化KFile.Pathinfo,获取文件路径的信息

Removed

  • none

[v0.4.5]- 2023-09-24

Added

  • 新增KTime.FormatDuration,格式化时长为字符串

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.4.4]- 2023-08-25

Added

  • none

Fixed

  • 修改KFile.Pathinfo,支持URL

Changed

  • none

Removed

  • none

[v0.4.3]- 2023-07-19

Added

  • none

Fixed

  • none

Changed

  • 修改KArr.CopyStruct,支持嵌套结构体

Removed

  • none

[v0.4.2]- 2023-07-17

Added

  • none

Fixed

  • none

Changed

  • 修改KArr.CopyStruct,返回值类型为error

Removed

  • none

[v0.4.1]- 2023-03-27

Added

  • none

Fixed

  • none

Changed

  • 修改KStr.PasswordSafeLevel,先检查是否弱密码

Removed

  • none

[v0.4.0]- 2023-02-24

Added

  • none

Fixed

  • none

Changed

  • github.com/StackExchange/wmi不再维护,替换为github.com/yusufpapurcu/wmi
  • 更新包依赖

Removed

  • none

[v0.3.9]- 2023-01-30

Added

  • 新增LkkNumber.SumInt64,int64整数求和
  • 新增LkkNumber.SumFloat32,32位浮点数求和
  • 新增LkkNumber.AverageInt64,对int64整数序列求平均值
  • 新增LkkNumber.AverageFloat32,对32位浮点数序列求平均值

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.3.8]- 2023-01-02

Added

  • 新增LkkNumber.MaxInt64,int64整数序列求最大值
  • 新增LkkNumber.MaxFloat32,32位浮点数序列求最大值
  • 新增LkkNumber.MinInt64,int64整数序列求最小值
  • 新增LkkNumber.MinFloat32,32位浮点数序列求最小值

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.3.7]- 2022-12-31

Added

  • none

Fixed

  • none

Changed

  • 修改LkkString.IsBase64Image,增加返回扩展名

Removed

  • none

[v0.3.6]- 2022-11-29

Added

  • 新增KOS.DownloadFile,文件下载

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.3.5]- 2022-10-10

Added

  • 新增KStr.StrOffset,字符串整体偏移

Fixed

  • fix ioutil.ReadAll Deprecated, replace to io.ReadAll
  • fix ioutil.ReadFile Deprecated, replace to os.ReadFile

Changed

  • none

Removed

  • none

[v0.3.4]- 2022-09-05

Added

  • 新增LkkFile.Md5Reader
  • 新增LkkFile.ShaXReader

Fixed

  • none

Changed

  • 重命名 LkkFile.Md5LkkFile.Md5File
  • 重命名 LkkFile.ShaXLkkFile.ShaXFile

Removed

  • none

[v0.3.3]- 2022-08-01

Added

  • none

Fixed

  • 优化KFile.CopyFile
  • 优化KFile.FastCopy
  • 优化KFile.CopyDir
  • 优化KFile.DelDir
  • 优化KFile.WriteFile
  • 优化KFile.FileTree
  • 优化KFile.Md5
  • 优化KFile.IsZip
  • 优化KFile.TarGz
  • 优化KFile.UnTarGz
  • 优化os_darwin_cgo下getProcessPathByPid
  • 优化os_darwin_cgo下LkkOS.CpuUsage
  • 优化os_linux下getPidByInode
  • 优化os_linux下LkkOS.Uptime
  • 优化os_windows下LkkOS.MemoryUsage
  • 优化os_windows下LkkOS.CpuUsage
  • 优化os_windows下LkkOS.DiskUsage
  • 优化os_windows下LkkOS.Uptime
  • 优化os_windows下LkkOS.GetBiosInfo
  • 优化os_windows下LkkOS.GetBoardInfo
  • 优化os_windows下LkkOS.GetCpuInfo
  • 优化os_windows下LkkOS.IsProcessExists
  • 优化isEmpty
  • 优化shaXByte
  • 优化pkcs7UnPadding

Changed

  • 修改KFile.CopyLink,增加cover文件覆盖参数
  • 修改LkkOS.HomeDir,不再自行区分windows/unix,使用自带的os.UserHomeDir

Removed

  • 删除os_darwin下getPidByPort
  • 删除os_windows下getPidByPort

[v0.3.2]- 2022-06-26

Added

  • none

Fixed

  • 修复KConv.IsFloat

Changed

  • none

Removed

  • none

[v0.3.1]- 2022-06-21

Added

  • none

Fixed

  • 修复KFile.Touch,创建文件前检查文件是否存在
  • 修复非cgo的darwin下KOS.GetProcessExecPath编译失败问题

Changed

  • SystemInfo系统信息结构体增加SystemArch字段

Removed

  • none

[v0.3.0]- 2022-05-27

Added

  • 新增KStr.PasswordSafeLevel,检查密码安全等级

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.2.9]- 2022-04-15

Added

  • none

Fixed

  • 修复KStr.MatchEquations

Changed

  • 优化LkkEncrypt.aesDecrypt

Removed

  • none

[v0.2.8]- 2022-04-15

Added

  • none

Fixed

  • none

Changed

  • rename KArr.CopyToStruct to KArr.CopyStruct

Removed

  • none

[v0.2.7]- 2022-04-14

Added

  • none

Fixed

  • 修改reflectTypesMap,获取匿名字段

Changed

  • none

Removed

  • none

[v0.2.6]- 2022-04-14

Added

  • 新增KArr.CopyToStruct,拷贝结构体

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.2.5]- 2022-03-31

Added

  • none

Fixed

  • 优化KEncr.AuthCode

Changed

  • none

Removed

  • none

[v0.2.4]- 2022-03-05

Added

  • 新增KDbug.Stacks,获取堆栈信息

Fixed

  • 修改KDbug.GetCallName,参数f支持uintptr类型

Changed

  • none

Removed

  • none

[v0.2.3]- 2022-01-21

Added

  • 新增KStr.UuidV5,根据提供的字符,使用sha1生成36位哈希值

Fixed

  • 修改KStr.UuidV4,添加version/variant信息

Changed

  • none

Removed

  • none

[v0.2.2]- 2022-01-10

Added

  • 新增KEncr.RsaPrivateEncryptLong使用RSA私钥加密长文本
  • 新增KEncr.RsaPublicDecryptLong使用RSA公钥解密长文本

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.2.1]- 2022-01-05

Added

  • 新增KStr.ChunkBytes将字节切片分割为多个小块
  • 新增KEncr.RsaPublicEncryptLong使用RSA公钥加密长文本
  • 新增KEncr.RsaPrivateDecryptLong使用RSA私钥解密长文本

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.2.0]- 2021-12-09

Added

  • 新增KStr.ToRunes将字符串转为字符切片
  • 新增KConv.ToInterfaces将变量转为接口切片
  • 新增KDbug.WrapError错误包裹

Fixed

  • 修改KStr.IsASCII根据字符串长度使用不同方法

Changed

  • 重命名KStr.IsHexcolorIsHexColor
  • 重命名KStr.IsRGBcolorIsRgbColor
  • 将部分公开变量转为私有

Removed

  • none

[v0.1.9]- 2021-11-27

Added

  • 新增IsPointer检查变量是否指针类型

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.1.8]- 2021-11-08

Added

  • none

Fixed

  • 修复KDbug.DumpPrint打印多变量问题
  • 修改KStr.Ucwords因go1.18废弃strings.Title,使用cases.Title代替

Changed

  • none

Removed

  • none

[v0.1.7]- 2021-10-15

Added

  • none

Fixed

  • 修复KEncr.AuthCode中keyb变化问题

Changed

  • none

Removed

  • none

[v0.1.6]- 2021-8-21

Added

  • 新增KNum.NearLogarithm,求对数临近值
  • 新增KNum.SplitNaturalNum,将自然数按底数拆解

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.1.5]- 2021-6-11

  • 重构版本,改动太多,懒得整理,就不再一一列出

[v0.1.4]- 2020-12-1

Added

  • 新增KArr.ArrayIntersect,求数组交集
  • 新增KArr.DeleteSliceItems,删除切片多个元素
  • 新增KFile.FormatPath,格式化路径
  • 新增KNum.IsNaturalRange,是否自然数数组
  • 新增KNum.Log,求任意底数的对数

Fixed

  • 修改KNum.IsNatural,自然数包含0

Changed

  • 修改KArr.ArrayDiff,增加比较方式参数compareType,返回字典
  • 修改KFile.FormatDir,过滤特殊字符
  • 修改KNum.IsNan,接收任意类型参数
  • 修改KNum.NumSign,结果类型为int8
  • 修改KNum.Range,支持生成降序的数组

Removed

  • none

[v0.1.3]- 2020-11-11

Added

  • none

Fixed

  • none

Changed

  • 修改KStr.Chr,使用rune转换字符码
  • 修改KDbug.CallMethod错误提示

Removed

  • none

[v0.1.2]- 2020-06-25

Added

  • KStr.Md5Byte
  • KStr.ShaXByte

Fixed

  • none

Changed

  • rename md5Str to md5Byte
  • rename shaXStr to shaXByte

Removed

  • none

[v0.1.1]- 2020-06-23

Added

  • KStr.Serialize
  • KStr.UnSerialize
  • KStr.TrimBOM

Fixed

  • none

Changed

  • none

Removed

  • none

[v0.1.0]- 2020-06-22

Added

  • none

Fixed

  • none

Changed

  • 修改KTime.Str2Timestruct使用本地时区而非UTC

Removed

  • none

[v0.0.9]- 2020-06-20

Added

  • none

Fixed

  • none

Changed

  • 修改KEncr.Base64Encode结果类型为[]byte
  • 修改KEncr.Base64Decode参数类型为[]byte
  • 修改KEncr.Base64UrlEncode结果类型为[]byte
  • 修改KEncr.Base64UrlDecode结果类型为[]byte
  • 修改KEncr.AuthCode参数和结果类型为[]byte
  • 修改KEncr.EasyEncrypt参数和结果类型为[]byte
  • 修改KEncr.EasyDecrypt参数和结果类型为[]byte
  • 修改KEncr.HmacShaX结果类型为[]byte

Removed

  • none

[v0.0.8]- 2020-05-31

Added

  • none

Fixed

  • none

Changed

  • KOS.GetSystemInfo增加SystemOs操作系统名称字段

Removed

  • none

[v0.0.7]- 2020-05-21

Added

  • none

Fixed

  • 修复KStr.ToCamelCase将首字母大写的驼峰串(如SayHello->Sayhello)转换错误问题

Changed

  • none

Removed

  • none

[v0.0.6]- 2020-04-28

Added

  • KNum.AbsInt

Fixed

  • none

Changed

  • rename KNum.Abs to KNum.AbsFloat

Removed

  • none

[v0.0.5]- 2020-03-20

Added

  • KArr.InInt64Slice
  • KArr.InIntSlice
  • KArr.InStringSlice
  • KArr.IsEqualArray
  • KConv.Byte2Hexs
  • KConv.Hexs2Byte
  • KConv.Runes2Bytes
  • KEncr.AesCBCDecrypt
  • KEncr.AesCBCEncrypt
  • KEncr.AesCFBDecrypt
  • KEncr.AesCFBEncrypt
  • KEncr.AesCTRDecrypt
  • KEncr.AesCTREncrypt
  • KEncr.AesOFBDecrypt
  • KEncr.AesOFBEncrypt
  • KEncr.GenerateRsaKeys
  • KEncr.RsaPrivateDecrypt
  • KEncr.RsaPrivateEncrypt
  • KEncr.RsaPublicDecrypt
  • KEncr.RsaPublicEncrypt
  • KFile.AppendFile
  • KFile.GetFileMode
  • KFile.ReadFirstLine
  • KFile.ReadLastLine
  • KNum.Percent
  • KNum.RoundPlus
  • KOS.GetBiosInfo
  • KOS.GetBoardInfo
  • KOS.GetCpuInfo
  • KOS.IsProcessExists
  • KStr.AtWho
  • KStr.ClearUrlPrefix
  • KStr.ClearUrlSuffix
  • KStr.Gravatar
  • KStr.IsWord
  • KStr.RemoveEmoji
  • KStr.UuidV4
  • KTime.DaysBetween
  • KTime.EndOfDay
  • KTime.EndOfMonth
  • KTime.EndOfWeek
  • KTime.EndOfYear
  • KTime.StartOfDay
  • KTime.StartOfMonth
  • KTime.StartOfWeek
  • KTime.StartOfYear

Fixed

  • none

Changed

  • KFile.IsFile 增加文件类型参数LkkFileType
  • KFile.WriteFile 增加权限参数perm
  • KOS.Getenv 增加默认值参数
  • KStr.Random 移除time.Sleep
  • KTime.GetMonthDays 放弃map,直接比较
  • rename KOS.GetProcessExeByPid to KOS.GetProcessExecPath
  • rename KTime.Time to KTime.UnixTime

Removed

  • none

[v0.0.4]- 2020-03-06

Added

  • KStr.Index
  • KStr.LastIndex

Fixed

  • none

Changed

  • KStr.RemoveBefore 增加参数ignoreCase
  • KStr.RemoveAfter 增加参数ignoreCase
  • KStr.StartsWith 增加参数ignoreCase,使用Index代替MbSubstr
  • KStr.EndsWith 增加参数ignoreCase,使用LastIndex代替MbSubstr

Removed

  • none

[v0.0.3]- 2020-03-03

Added

  • 增加常量DYNAMIC_KEY_LEN动态密钥长度

Fixed

  • KEncr.AuthCode 修复bounds out of range错误

Changed

  • KEncr.AuthCode 动态密钥长度改为8
  • KEncr.EasyEncrypt 动态密钥长度改为8
  • KEncr.EasyDecrypt 动态密钥长度改为8
  • KTime.CheckDate(month, day, year int) to CheckDate(year, month, day int)
  • KNum.ByteFormat 增加'delimiter'参数,为数字和单位间的分隔符

Removed

  • none

[v0.0.2]- 2020-02-09

Added

  • KArr.JoinInts
  • KArr.JoinStrings
  • KArr.Unique64Ints
  • KArr.UniqueInts
  • KArr.UniqueStrings
  • KConv.ToBool
  • KConv.IsNil
  • KDbug.CallMethod
  • KDbug.GetFuncDir
  • KDbug.GetFuncFile
  • KDbug.GetFuncPackage
  • KDbug.GetMethod
  • KDbug.HasMethod
  • KFile.CountLines
  • KFile.IsZip
  • KFile.ReadInArray
  • KFile.UnZip
  • KFile.Zip
  • KNum.Average
  • KNum.AverageFloat64
  • KNum.AverageInt
  • KNum.FloatEqual
  • KNum.GeoDistance
  • KNum.MaxFloat64
  • KNum.MaxInt
  • KNum.RandFloat64
  • KNum.RandInt64
  • KNum:Sum
  • KNum:SumFloat64
  • KNum:SumInt
  • KOS.ForceGC
  • KOS.GetPidByPort
  • KOS.GetProcessExeByPid
  • KOS.TriggerGC
  • KStr.CountWords
  • KStr.EndsWith
  • KStr.Img2Base64
  • KStr.IsBlank
  • KStr.IsEmpty
  • KStr.IsLower
  • KStr.IsMd5
  • KStr.IsSha1
  • KStr.IsSha256
  • KStr.IsSha512
  • KStr.IsUpper
  • KStr.Jsonp2Json
  • KStr.StartsWith
  • KStr.ToKebabCase
  • KStr.ToSnakeCase
  • KTime.Day
  • KTime.Hour
  • KTime.Minute
  • KTime.Month
  • KTime.Second
  • KTime.Str2Timestruct
  • KTime.Year

Fixed

  • KStr.Trim, 当输入"0"时,结果为空的BUG.

Changed

  • KArr.Implode, 增加对map的处理.
  • KEncr.EasyDecrypt, 改进循环.
  • KEncr.EasyEncrypt, 改进循环.
  • KNum.Max, 接受任意类型的参数.
  • KNum.Min, 接受任意类型的参数.
  • KNum.Sum, 只对数值类型求和.
  • KOS.Pwd, 弃用os.Args[0],改用os.Executable.
  • KStr.IsASCII, 弃用正则判断.
  • KStr.IsEmail, 去掉邮箱是否真实存在的检查.
  • KStr.MbSubstr, 允许参数start/length为负数.
  • KStr.Substr, 允许参数start/length为负数.
  • rename KArr.ArraySearchMutilItem to ArraySearchMutil
  • rename KArr.MapMerge to MergeMap
  • rename KArr.SliceMerge to MergeSlice
  • rename KConv.Bin2dec to Bin2Dec
  • rename KConv.Bin2hex to Bin2Hex
  • rename KConv.ByteToFloat64 to Byte2Float64
  • rename KConv.ByteToInt64 to Byte2Int64
  • rename KConv.BytesSlice2Str to Bytes2Str
  • rename KConv.Dec2bin to Dec2Bin
  • rename KConv.Dec2hex to Dec2Hex
  • rename KConv.Dec2oct to Dec2Oct
  • rename KConv.Hex2bin to Hex2Bin
  • rename KConv.Hex2dec to Hex2Dec
  • rename KConv.Ip2long to Ip2Long
  • rename KConv.Long2ip to Long2Ip
  • rename KConv.Oct2dec to Oct2Dec
  • rename KConv.Str2ByteSlice to Str2Bytes
  • rename KConv.StrictStr2Float to Str2FloatStrict
  • rename KConv.StrictStr2Int to Str2IntStrict
  • rename KConv.StrictStr2Uint to Str2UintStrict
  • rename KFile.Filemtime to GetModTime
  • rename KFile.GetContents to ReadFile
  • rename KFile.PutContents to WriteFile
  • rename KStr.CamelName to ToCamelCase
  • rename KStr.LowerCaseFirstWords to Lcwords
  • rename KStr.StrShuffle to Shuffle
  • rename KStr.Strrev to Reverse
  • rename KStr.UpperCaseFirstWords to Ucwords
  • rename KTime.Strtotime to Str2Timestamp

Removed

  • remove KConv.Int2Bool

--end of file--