Pseudo OOP in C AND Go

This post I made because I just discovered an entry from long time ago, which I forgot to answer.

pseudo code:

int *method_to_append() {
 return 0;
}
void *do_something() {}
struct foo {
    int attribute1 : 0;
    int attribute2 : 0;
    int *method1 : method_to_append;
    void *method2 : do_something;
};
struct foo new_obj;
new_obj->method2();