From 155a6d670e0446c9ebad382f020d6f1513567ae0 Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Tue, 20 Aug 2024 09:12:38 -0400 Subject: [PATCH] Update README.md Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- README.md | 4 ++++ moon.mod.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bcbeea5..d0b4bfc 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,10 @@ struct Sum { sum : Int } +pub fn to_json(self: Sum) -> Json { + { "sum": self.sum.to_json() } +} + pub fn add() -> Int { let input = @host.input_string() let params = try { diff --git a/moon.mod.json b/moon.mod.json index 53a1959..31a16b3 100644 --- a/moon.mod.json +++ b/moon.mod.json @@ -1,6 +1,6 @@ { "name": "extism/moonbit-pdk", - "version": "0.35.0", + "version": "0.36.0", "deps": {}, "readme": "README.md", "repository": "https://github.com/extism/moonbit-pdk",