? The return statement is properly documented. You just put "return <expression of return type(s)>", or just "return" if all your return values are named. In this case, you are using a composite literal for the return. You could have used a variable, say:
func f() struct{ a, b string } {
var ret struct { a, b string }
// ...
return ret
}
or named your return value
func f() struct (ret struct{ a, b string }) {
ret.a = "mostly"
ret.b = "harmless"
return
}
When you say "the Go doc", you have read the go spec, right?