1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 22:00:55 +00:00

Update utils.go

This commit is contained in:
Dennis 2018-11-15 15:16:41 +08:00 committed by GitHub
parent 1a66ad56c6
commit c4c3067a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ func ToInt64(value interface{}) (d int64) {
return return
} }
// snake string, XxYy to xx_yy , XxYY to xx_yy // snake string, XxYy to xx_yy , XxYY to xx_y_y
func snakeString(s string) string { func snakeString(s string) string {
data := make([]byte, 0, len(s)*2) data := make([]byte, 0, len(s)*2)
j := false j := false