You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type AStructWithLongName struct {
data int
}
type AnotherStructWithLongName struct {
aStructWithLongName AStructWithLongName
data int
}
...
a := AnotherStructWithLongName{
data: 1,
aStructWithLongName: AStructWithLongName{data: 2},
}
i have to write a lot lot code like above, is it possible not to write struct name, like int , string etc
like this
a := AnotherStructWithLongName{
data: 1,
aStructWithLongName: /*AStructWithLongName*/{data: 2},
}
The text was updated successfully, but these errors were encountered:
i have to write a lot lot code like above, is it possible not to write struct name, like int , string etc
like this
The text was updated successfully, but these errors were encountered: