// resolveOnce implements resolver. Decodes the proquint string. func (r *ProquintResolver) resolveOnce(ctx context.Context, name string) (path.Path, error) { ok, err := proquint.IsProquint(name) if err != nil || !ok { return "", errors.New("not a valid proquint string") } return path.FromString(string(proquint.Decode(name))), nil }