Port object.c to object.go.