Commit Graph
4 Commits
Author SHA1 Message Date
ziheng e3ee01d185 improve sliceValidateError.Error performance using switch and strings.Builder (#2765)
fix missing nil pointer check

use simpler switch case

add missing tests

use for-loop instead of range

add benchmark test codes
2021-06-28 22:05:29 +08:00
ziheng f2bbdfe9f2 Use buf.String() instead of string(buf.Bytes()) (#2764) 2021-06-25 12:14:06 +08:00
ziheng 09f6cff92a skip unnecessary variable assignment in timeFormat (#2761) 2021-06-24 15:31:38 +08:00
ziheng be860ec157 fix typo and add comments (#2760) 2021-06-24 13:07:49 +08:00