Skip to content

Pipe command type string is not func #205

@StephanSchmidt

Description

@StephanSchmidt

When I do this

... | money("$") | ....

I get

pipe command "money(\"$\")" type string is not func

with

.AddGlobalFunc("money", func(a jet.Arguments) reflect.Value {
a.RequireNumOfArguments("money", 1, 2)

Is there an example on how to do this?

The builtin "repeat(2)" is doing this for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions