草庐IT

string - 去意外的字符串文字

这是我在Go中的代码,我想一切都是正确的......packagemainimport("fmt""encoding/json""net/http")typePayloadstruct{StuffData}typeDatastruct{FruitFruitsVeggiesVegetables}typeFruitsmap[string]inttypeVegetablesmap[string]intfuncserveRest(whttp.ResponseWriter,r*httpRequest){response,err:=getJsonResponse()iferr!=nil{panic