aboutsummaryrefslogtreecommitdiff
path: root/src/app/app.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/app.gleam')
-rw-r--r--src/app/app.gleam6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/app.gleam b/src/app/app.gleam
index 55df9b7..760876f 100644
--- a/src/app/app.gleam
+++ b/src/app/app.gleam
@@ -1,7 +1,9 @@
+import gleam/io
+import gleam/string
import wechat/object.{type JsObject}
-fn on_launch(_o: JsObject) -> Nil {
- Nil
+fn on_launch(o: JsObject) -> Nil {
+ o |> object.stringify |> string.append("gleam app: ", _) |> io.println
}
fn on_show(_o: JsObject) -> Nil {