add server function call

This commit is contained in:
Masato Imai
2022-07-21 16:04:00 +09:00
parent be3bd2572e
commit 660ed217be
12 changed files with 351 additions and 97 deletions

View File

@ -1,4 +1,9 @@
fn main() {
send("test");
println(receive());
#[server(ip = "localhost:8080")]
fn add(a: num, b: num) {
return a + b;
}
fn main() {
println(add(1, 2));
}