Skip to content
New issue

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

Support method-chaining for builtins to reduce need for custom-functions #6

Open
SebTM opened this issue Aug 12, 2023 · 0 comments
Open

Comments

@SebTM
Copy link

SebTM commented Aug 12, 2023

Currently it appears for me that for each non-trivial case, you might need a custom-function (or I miss something) I would have plenty of use-cases for method-chaining on builtin-functions e.g.

type PageData struct {
	Releases []struct {
		Version string `pagser:"div.c-page-details > div->textSplit(' ', true)->eq(3)"`
	} `pagser:"section.c-panel div.o-grid div.u-mb-16"`
}

What do you think? Would this be technically doable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant