instead use while referring to the "initialised objects"?
when you start to use a new language find its Zen and think in its way, not the previous one. for what you call initialized objects you can do in some ways. One of those is it: type Foo struct { Bar string } func NewFoo(bar string) Foo { return Foo{Bar: bar} } Also you can benefit from interfaces for a more advanced code.
Appreciate but I am specifically after the verbiage. For instance, What would you call the "objects" 'x' and 'bar' of <T Foo> ? var bar Foo x := Foo{"sunday"}
there's no generics in go
their question is something else
these are just Foo structs
I think the answer of this question is "Instance" as @drunktimelord said
instance is an OOP word
I think not
Обсуждают сегодня