Skip to content

Commit

Permalink
[Go] Add example with input (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi authored May 27, 2024
1 parent 8e186ae commit bd87f2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/samples/coffee-shop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@
//
// go run . &
//
// Tell it to run an action:
// Tell it to run an action. Here are some examples:
//
// Flow without input:
//
// curl -d '{"key":"/flow/testAllCoffeeFlows/testAllCoffeeFlows", "input":{"start": {"input":null}}}' http://localhost:3100/api/runAction
// Flow with input:
//
// curl -d '{"key":"/flow/simpleGreeting/simpleGreeting", "input":{"start": {"input":{"customerName": "John Doe"}}}}' http://localhost:3100/api/runAction
//
// In production mode (GENKIT_ENV missing or set to "prod"):
// Start the server listening on port 3400:
Expand Down

0 comments on commit bd87f2c

Please sign in to comment.