Skip to content

Documentation on how to use modules #555

@jayaprabhakar

Description

@jayaprabhakar

I see a number of modules defined in https://github.com/google/starlark-go/tree/master/starlark/testdata,
But I am not sure how to use those modules, I'm primarily looking for the math module.

Similarly, I see another math module in the starlark-go code: https://github.com/google/starlark-go/tree/master/lib/math
Again, I couldn't find any documentation how to use it.

It would be also be nice, to have at least one example on how to use starlarkstruct.Module to define a new module and use them as well.

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