I have just one question I wrote an example here
package main
import (
"fmt"
)
type PACK struct {
d, r int
}
func main() {
st := &PACK{}
st.d, st.r = f(12, 32)
}
func f(a, b int) (d int, r int) {
d = a / b
r = a ^ b
return
}
So, the question is - how can i make thing like this
st := &PACK{ f(1,2) }
I want my function return arguments to be a struct initializer!