type TestStruct struct {
Value string
}
type TestInterface interface {
DoSomeWork(s *TestStruct)
}
public static abstract class Stub implements TestInterface {
static final String DESCRIPTOR = "go.demo.TestInterface";
private final go.Seq.Ref ref;
public Stub() {
ref = go.Seq.createRef(this);
}
public go.Seq.Ref ref() { return ref; }
public void call(int code, go.Seq in, go.Seq out) {
switch (code) {
case Proxy.CALL_DoSomeWork: {
TestStruct param_s = in.readRef();
this.DoSomeWork(param_s);
return;
}
default:
throw new RuntimeException("unknown code: "+ code);
}
}
}
case Proxy.CALL_DoSomeWork: { TestStruct param_s = in.readRef(); this.DoSomeWork(param_s); return; }
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.