Allow build to export as an importable package #58
Replies: 1 comment
-
Hey @primetoxinz thanks for your interest in Bud! In your case, I'd try build a bud app as a separate module, then creating a
This Inside your package budapp
import (
"budapp/bud/.app/web"
)
func Load() (*web.Server, error) {
// TODO: wire up the dependencies needed for New
return web.New(...)
} Once you have this setup, you can import This will some manual work, because you'll need to wire the dependencies yourself. Have a look at In the future, I plan to expose the |
Beta Was this translation helpful? Give feedback.
-
Hey, team. Bud is looking awesome and very useful!
I am looking to use bud for generating internal administrative UIs for my companies microservice infrastructure - I want these UIs to be served by an existing router, rather than by its own binary.
So I'm wondering how difficult it would be for
bud build
to have an option to output the .app code to an actual package in a project that exposes thehttp.Handler
for adding to an existinghttp.Server
rather than using bud`sBeta Was this translation helpful? Give feedback.
All reactions