From 6f9d2f3fd88bc1485ab28c054d71ff6c140e1346 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 2 Nov 2022 11:16:09 +0100 Subject: [PATCH] better go example --- frontend/src/lib/script_helpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/script_helpers.ts b/frontend/src/lib/script_helpers.ts index 328a7a5c9e..33729cafcd 100644 --- a/frontend/src/lib/script_helpers.ts +++ b/frontend/src/lib/script_helpers.ts @@ -63,8 +63,9 @@ import ( // wmill "github.com/windmill-labs/windmill-go-client" ) -func main(x string, nested struct{ v string }) (interface{}, error) { +func main(x string, nested struct{ Foo string \`json:"bar"\` }) (interface{}, error) { fmt.Println("Hello, World") + fmt.Println(nested.Foo) fmt.Println(quote.Opt()) // v, _ := wmill.GetVariable("g/all/pretty_secret") return x, nil