mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:50:54 +00:00
fix gosimple
This commit is contained in:
parent
ee1d8bc30e
commit
e32a18203b
@ -343,9 +343,8 @@ func (output *BeegoOutput) IsServerError() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func stringsToJSON(str string) string {
|
func stringsToJSON(str string) string {
|
||||||
rs := []rune(str)
|
|
||||||
var jsons bytes.Buffer
|
var jsons bytes.Buffer
|
||||||
for _, r := range rs {
|
for _, r := range str {
|
||||||
rint := int(r)
|
rint := int(r)
|
||||||
if rint < 128 {
|
if rint < 128 {
|
||||||
jsons.WriteRune(r)
|
jsons.WriteRune(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user