Files
herolib/lib/builder/builder_factory.v
2025-10-12 12:30:19 +03:00

25 lines
374 B
V

module builder
import incubaid.herolib.core.base
@[heap]
pub struct BuilderFactory {
}
pub fn new() !BuilderFactory {
_ := base.context()!
mut bf := BuilderFactory{}
return bf
}
@[params]
pub struct NodeLocalArgs {
pub:
reload bool
}
pub fn node_local(args NodeLocalArgs) !&Node {
mut bldr := new()!
return bldr.node_new(name: 'localhost', reload: args.reload)
}