/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

brunoscheufler.com
| | risi.co
2.7 parsecs away

Travel
| | [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
2.2 parsecs away

Travel
| | 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
1.7 parsecs away

Travel
| | Use marshaling interfaces from the Go json package to control complex data types in JSON.
| | jbrandhorst.com
16.1 parsecs away

Travel
| 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.