1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:00:07 -07:00

remove init

This commit is contained in:
Mateusz Poliwczak 2023-05-11 09:58:44 +02:00
parent 73d7f4f8c3
commit 735f3364a4

View File

@ -16,11 +16,6 @@ import (
"unsafe"
)
func init() {
const expected_size = unsafe.Sizeof(C.struct___res_state{})
const got_size = unsafe.Sizeof(unix.ResState{})
// This will cause a compile error when the size of
// unix.ResState is too small.
var _ [got_size - expected_size]byte
}
// This will cause a compile error when the size of
// unix.ResState is too small.
type _ [unsafe.Sizeof(unix.ResState{}) - unsafe.Sizeof(C.struct___res_state{})]byte