Interface1 [golang] interface{}로 json 언마샬 디코딩 하기 목표 - model 을 쓰지 않고, 바로 json 을 언마샬하려고 한다. (바로 변수에 담기 ) - 단일 json 을 위해 model 을 만드는게 싫기 때문에 .. https://mingrammer.com/gobyexample/json/ Go by Example: JSON $ go run json.go true 1 2.34 "gopher" ["apple","peach","pear"] {"apple":5,"lettuce":7} {"Page":1,"Fruits":["apple","peach","pear"]} {"page":1,"fruits":["apple","peach","pear"]} map[num:6.13 strs:[a b]] 6.13 a {1 [apple peach]} apple {"apple":5,".. Web/GoLang 2021. 8. 24. 이전 1 다음