3 ms·
FWIW, Go _does_ have keyword struct members, so it's possible to do type A struct { B int C int } myfunc(A{B: 1, C: 2})
by JulianMorrison 5y ago
FWIW, Go _does_ have keyword struct members, so it's possible to do
type A struct {
B int
C int
}
myfunc(A{B: 1, C: 2})
- throwaway894345 5y agoI do this a lot. You can even do `A{B: 1, C: 2}.myfunc()` in many cases.