We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps:
Add this verb to examples/go/time/time.go
examples/go/time/time.go
//ftl:verb export func OptionalResponse(ctx context.Context, rew TimeRequest) (ftl.Option[TimeResponse], error) { return ftl.None[TimeResponse](), fmt.Errorf("not implemented") }
Add this verb to examples/go/echo/echo.go
examples/go/echo/echo.go
//ftl:verb func CallsOptionalResponse(ctx context.Context, client time.OptionalResponseClient) error { _, err := client(ctx, time.TimeRequest{}) return err }
This causes echo's types.ftl.go to be generated like this:
types.ftl.go
<...> import ( "context" ftltime "ftl/time" "github.com/block/ftl/common/reflection" "github.com/block/ftl/go-runtime/server" ) <...> reflection.ProvideResourcesForVerb( CallsOptionalResponse, server.VerbClient[ftltime.OptionalResponseClient, ftltime.TimeRequest, ftl.Option[ftltime.TimeResponse]](), ), <...>
We get this build error: Build failed: types.ftl.go:20:75: undefined: ftl because the verb client refers to ftl.Option but imports do not include ftl
Build failed: types.ftl.go:20:75: undefined: ftl
ftl.Option
ftl
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps:
Add this verb to
examples/go/time/time.go
Add this verb to
examples/go/echo/echo.go
This causes echo's
types.ftl.go
to be generated like this:We get this build error:
Build failed: types.ftl.go:20:75: undefined: ftl
because the verb client refers toftl.Option
but imports do not includeftl
The text was updated successfully, but these errors were encountered: