Explore >> Select a destination


You are here

cep.dev
| | blog.percywegmann.com
12.2 parsecs away

Travel
| | Don't Overthink It
| | aarol.dev
12.9 parsecs away

Travel
| | Advent of Code is an annual set of Christmas-themed computer programming challenges that follow an Advent calendar. It has been running since 2015. The ...
| | antonz.org
9.5 parsecs away

Travel
| | Computing the smallest/largest value and clearing containers.
| | www.integralist.co.uk
43.8 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.