需求 PHP实现像golang一样数组转字节,传递给go服务 go package main import ( "encoding/json" "fmt" ) type Info struct { Id int `json:"id"` Title string `json:"title"` Content string `json:"content"` } func main() { info := Info{ Id: 1002, Title: "标题"