Составные типы
Обозначаются struct
type test struct {
a float64
b MySomeInterface
}
Можно объявлять одинаковые переменные вместе
// Одно и то же:
type test struct {
a float64
b float64
}
type test struct {
a, b float64
}
Last updated