good
good copied to clipboard
The Good Programming Language
Hi. Golang's idiotic feature is that it disallows Allman brace style. It should be fixed in a fork. :) whitespace shouldn't matter.
``` func Foo(a int) int { return if a > 100 { 0 } else { -1 } } b := switch c { case 0: -1 case 1: 1...
Now we should write tons of boilerplate code like ```go x, y, z, err := someFunc(a, b, c, d) if err != nil { return err } ``` or ```go...
```go package someComponent type Comp struct { GooxComponent } func (c *Comp) Render() GooxComponent { return ( {c.Childs} ) } ``` ```go package template import "someComponent" func Render() GooxComponent {...
Please answer these questions before submitting your issue. Thanks! ### What version of Go are you using (`go version`)? go1.8beta1 ### What operating system and processor architecture are you using...
We want to get rid from using mutex when working with maps. We need to fix concurrent read/write in maps. To do that we need to remove `throw`s about concurrent...
As @onokonem proposed, we can add `?.` operator for structures, that basically `struct field or nil` operator. reason is: ``` if structA.FieldA != nil { someVar = structA.FieldA.FieldB } ```...