Skip to content

Commit

Permalink
add docs/v0.0.4.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kakuilan committed Mar 6, 2020
1 parent e935f20 commit 8e83df3
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 107 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ go tool pprof -http=192.168.1.2:8081 /usr/bin/dot profile.out


### 更新日志
详见[[CHANGELOG]](/docs/changelog.md)
详见[[Changelog]](/docs/changelog.md)


### 鸣谢
Expand Down
226 changes: 121 additions & 105 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,127 +1,143 @@
# Changelog
All notable changes to this project will be documented in this file.

## [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错误
- `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'参数,为数字和单位间的分隔符
- `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
- `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.
- `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
- `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

- remove `KConv.Int2Bool`
2 changes: 1 addition & 1 deletion kgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type (

const (
// Version 版本号
Version = "0.0.3"
Version = "0.0.4"

//UINT_MAX 无符号整型uint最大值
UINT_MAX = ^uint(0)
Expand Down

0 comments on commit 8e83df3

Please sign in to comment.