Skip to content
Permalink
Browse files
优化正则
  • Loading branch information
Changeden committed Oct 12, 2021
1 parent cbad558 commit 5bdf65a7bab98ca7061c7be184144f68d205585f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -29,7 +29,7 @@ import (
)

var (
decodeTypeRegexp = regexp.MustCompile(`^(string|u?int(8|16|32|64)?|bool|float(32|64)+)$`)
decodeTypeRegexp = regexp.MustCompile(`^(string|u?int(8|16|32|64)?|bool|float(32|64))$`)
)

// nil bool int8 int32 int64 float32 float64 time.Time

0 comments on commit 5bdf65a

Please sign in to comment.