Skip to content

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

@SebTM

Description

@SebTM

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions