MCPcopy Create free account
hub / github.com/temporalio/temporal / ExampleStringVariable

Function ExampleStringVariable

common/routing/route_test.go:86–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func ExampleStringVariable() {
87 fmt.Println(routing.StringVariable("namespace", func(params *QualifiedWorkflow) *string { return &params.Namespace }).Representation())
88 // Output: {namespace}
89}
90
91func TestNewRoute(t *testing.T) {
92 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringVariableFunction · 0.92
RepresentationMethod · 0.65

Tested by

no test coverage detected