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

Function StringVariable

common/routing/route.go:130–132  ·  view source on GitHub ↗

StringVariable returns a [Component] that represents a string variable in a Route.

(name string, getter func(*T) *string)

Source from the content-addressed store, hash-verified

128
129// StringVariable returns a [Component] that represents a string variable in a Route.
130func StringVariable[T any](name string, getter func(*T) *string) stringVariable[T] {
131 return stringVariable[T]{name, getter}
132}
133
134type stringVariable[T any] struct {
135 name string

Callers 1

ExampleStringVariableFunction · 0.92

Calls

no outgoing calls

Tested by 1

ExampleStringVariableFunction · 0.74