8 // PrefixUIInput is an implementation of UIInput that prefixes the ID
9 // with a string, allowing queries to be namespaced.
10 type PrefixUIInput struct {
16 func (i *PrefixUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) {
17 opts.Id = fmt.Sprintf("%s.%s", i.IdPrefix, opts.Id)
18 opts.Query = fmt.Sprintf("%s%s", i.QueryPrefix, opts.Query)
19 return i.UIInput.Input(ctx, opts)