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