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)