example
This commit is contained in:
parent
768eaca60a
commit
7f0d7047e9
@ -60,7 +60,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
log.Printf("remote call result from ts = %v", res)
|
||||
log.Printf("call result go->ts = %v", res)
|
||||
|
||||
if err := ipc.Wait(1 * time.Second); err != nil {
|
||||
log.Panic(err)
|
||||
|
||||
@ -20,7 +20,11 @@ async function main() {
|
||||
|
||||
await ipc.start();
|
||||
|
||||
console.log(`remote call result from go = ${await remoteApi.Div(10, 2)}`);
|
||||
console.log(`call result ts->go Div = ${await remoteApi.Div(10, 2)}`);
|
||||
|
||||
const data1 = new Uint8Array().fill(0b10101010, 0, 100);
|
||||
const data2 = new Uint8Array().fill(0b11110000, 0, 100);
|
||||
console.log(`call result ts->go XorData = ${await remoteApi.XorData(data1, data2)}`);
|
||||
|
||||
await ipc.wait();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user