composite_literal.go (353B)
1 package indentation_tests 2 3 func _() { 4 w := struct { 5 foo int 6 }{ 7 nil, 8 foo(func() { 9 foo++ 10 }), 11 } 12 13 map[string]func(f Foo, b *Bar){ 14 "foo": func(f Foo, b *Bar) { 15 println("hi") 16 }, 17 "bar": func(f Foo, b *Bar) { 18 println("there") 19 }, 20 } 21 22 Foo{ 23 Bar: func() { 24 switch { 25 case baz: 26 } 27 }, 28 29 "bar": { 30 "foo", 31 "bar", 32 }, 33 } 34 }