Explore >> Select a destination


You are here

hamatti.org
| | juxt.pro
4.4 parsecs away

Travel
| | Explore the challenges of JSON as a configuration format and discover alternatives that offer better readability and maintainability
| | attilaolah.eu
5.2 parsecs away

Travel
| | Say you are decoding a JSON object into a Go struct. It comes from a servicethat is not under your control, so you cannot do much about the schema.However, you...
| | marcus-obst.de
4.0 parsecs away

Travel
| |
| | www.integralist.co.uk
27.1 parsecs away

Travel
| The following code doesn't do what you might expect: package main import "fmt" func main() { var i *impl fmt.Println("i == nil:", i == nil) what(i) } type impl struct{} func (i *impl) do() {} func what(i interface{ do() }) { fmt.Println("i == nil:", i == nil) } If you expected the what function to print i == nil: true, then keep reading... Typed Nils The behavior observed is due to the way interfaces and nil values interact in Go.