[Golang] Convert between Json and Struct in Golang
Khi sử dụng resty để sent POST (Restful API) thì nếu nhận về payload nhận về sẽ là chuổi json chuyển đổi json và struct trong golangNim tham khảo link nàyhttps://golangbyexample.com/struct-json-golang/ Bạn là để ý là mình sẽ chuẩn bị 1 struct là In4ConnectorTiếp đó mỉnh sử dụng json.Unmarshal([]byte(), ) để chuyển string resp.String() sang…
Read More “[Golang] Convert between Json and Struct in Golang” »