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

Overview of extending thrid party packages #493

Open
fabiante opened this issue Apr 13, 2023 · 0 comments
Open

Overview of extending thrid party packages #493

fabiante opened this issue Apr 13, 2023 · 0 comments

Comments

@fabiante
Copy link

Hi, really happy to be working with otto, I am amazed and happy that it manages to be so simple to integrate!

When testing out what I can do with otto I wondered if there are thrid party packages which expose Go capabilities into otto VMs. Some examples I can think of:

  • Exposing a simply HTTP client / Exposing a fetch like object
  • Customizing the logging so that console.log does not print to stdout but can be redirected to some common logger type (slog maybe)
  • Expose simple file system operations
  • Expose database (KV, SQL) clients

I don't want to suggest that these should be added. I too am aware that not all of these examples are practical in every situation. Instead I want to ask if there is a list of such packages? I have browes pkg.go.dev a bit but not found anything substantial.

Assuming that there are packages do such things, would it be beneficial to have a community maintained list of them as part of this projects README or similar? If otto continues to do the great job it is currently doing for me, I will probably develop some generic libraries (see examples above) and would love to contribute them to such a list.

Sincerely!

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