package mainimport "fmt" type Foo struct { Bar string} func main(){ x := nil x = &Foo { "hello" } fmt.Println(x.Bar)}
Standard input is empty
# _/home/xaFMxC ./prog.go:9: use of untyped nil
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!