|
You are here |
brunoscheufler.com | ||
| | | | |
risi.co
|
|
| | | | | [AI summary] The blog post explains a Golang issue where custom UnmarshalJSON methods fail to unmarshal outer struct fields due to inner field shadowing and offers two solutions. | |
| | | | |
blog.gopheracademy.com
|
|
| | | | | In this post, I will tell a story of how I had to build a custom JSON unmarshaler for the needs of a GraphQL client library in Go. | |
| | | | |
ukiahsmith.com
|
|
| | | | | Use marshaling interfaces from the Go json package to control complex data types in JSON. | |
| | | | |
jbrandhorst.com
|
|
| | | Putting it all together As we touched upon earlier, we generate a package from the generated JS (meta, right?), which can be served from the server. We'll create a new file, main.go, in which we can spin up a server, serve the frontend and the gRPC backend. Much of the logic in this file is inspired by the excellent blog post put together by Brandon Philips over at CoreOS. We're using his elegant solution to serve both the HTTP API and the gRPC API on the same port. | ||