From 7f0d7047e918ca749428bf56d7a65561ad8e8074 Mon Sep 17 00:00:00 2001 From: Egor Aristov Date: Sun, 16 Nov 2025 09:00:57 +0300 Subject: [PATCH] example --- example/golang/main.go | 2 +- example/ts/src/index.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/example/golang/main.go b/example/golang/main.go index c2381bb..0e0dff8 100644 --- a/example/golang/main.go +++ b/example/golang/main.go @@ -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) diff --git a/example/ts/src/index.ts b/example/ts/src/index.ts index 7cfcf92..4352d89 100644 --- a/example/ts/src/index.ts +++ b/example/ts/src/index.ts @@ -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(); }