Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Emit raw JS code from .go (for wrapping existing JS libs) #4

@coopernurse

Description

@coopernurse

Thanks for this project. Quick question: is there a way to tell go2js to emit some raw JS code from within a .go file?

If not, how do you recommend writing wrappers for existing JS libraries? For example, I'd like to wrap a library like jQuery and encapsulate the Go->JS bindings in a single place. Then I can call the wrapped Go version in a type safe manner.

Thoughts?

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