Commit Graph
7 Commits
Author SHA1 Message Date
ziheng caf2802593 Improve router group tests (#2787) 2021-07-13 09:44:19 +08:00
ziheng 3116a2d7a1 use std http method constant instead of raw string (#2782) 2021-07-09 10:30:44 +08:00
ziheng c7a28f8532 use bit shift operation instead of division (#2776) 2021-07-06 16:37:14 +08:00
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