Given a struct
that looks like
type foo struct {
i *int
}
if I want to set i
to 1, I must
throwAway := 1
instance := foo { i: &throwAway }
Is there any way to do this in a single line without having to give my new i
value it's own name (in this case throwaway
)?