From cabe4c1b424c9276e2ec05b1eaa22db1e1e91512 Mon Sep 17 00:00:00 2001 From: matu6968 Date: Thu, 21 Nov 2024 00:55:31 +0100 Subject: [PATCH] init --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 128c266..1f3c63b 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,12 @@ AUTH_TOKEN=bearer-token-here # Put your token generated from the server .env fil ``` // Edit app - metadata.Ver = "7" // only specify what you want to edit - metadata.Name = "Camera" // only specify what you want to edit - metadata.Info = "This is a newer camera app" // only specify what you want to edit - metadata.Pub = "matu6968" // only specify what you want to edit + metadata := client.AppMetadata{ // only specify what you need + Name: "Camera", + Ver: "7", + Info: "This is a new camera app", + Pub: "matu6968", + } err = c.EditApp(newApp.AppID, metadata, "./index.js") // replace newApp.AppID with the app id you want to delete if err != nil { log.Fatal("Failed to edit app:", err)