add implementaion of array alignment in reflect
Этот коммит содержится в:
родитель
6b1faeb882
коммит
4339cbd56f
1 изменённых файлов: 2 добавлений и 0 удалений
|
@ -375,6 +375,8 @@ func (t Type) Align() int {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return alignment
|
return alignment
|
||||||
|
case Array:
|
||||||
|
return t.Elem().Align()
|
||||||
default:
|
default:
|
||||||
panic("unimplemented: alignment of type")
|
panic("unimplemented: alignment of type")
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче