mirror of
https://gitee.com/johng/gf
synced 2026-07-03 11:51:04 +08:00
13 lines
195 B
Go
13 lines
195 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
"github.com/gogf/gf/util/gconv"
|
|
)
|
|
|
|
func main() {
|
|
b, _ := json.Marshal([]interface{}{1, 2, 3, 4, 5, 123.456, "a"})
|
|
fmt.Println(gconv.String(b))
|
|
}
|