Skip to content

Commit 8fdde4d

Browse files
authored
feat: add go example to flow approval (windmill-labs#617)
1 parent 808d9d0 commit 8fdde4d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/flows/11_flow_approval.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,29 @@ def main():
163163
}
164164
```
165165

166+
</TabItem>
167+
<TabItem value="go" label="Go" attributes={{className: "text-xs p-4 !mt-0 !ml-0"}}>
168+
169+
```go
170+
package inner
171+
172+
import (
173+
wmill "github.com/windmill-labs/windmill-go-client"
174+
)
175+
176+
func main() (map[string]interface{}, error) {
177+
urls, err := wmill.GetResumeUrls("approver1")
178+
if err != nil {
179+
return nil, err
180+
}
181+
return map[string]interface{}{
182+
"resume": urls.Resume,
183+
"default_args": make(map[string]interface{}), // optional
184+
"enums": make(map[string]interface{}), // optional
185+
}, nil
186+
}
187+
```
188+
166189
</TabItem>
167190
</Tabs>
168191

0 commit comments

Comments
 (0)