lang: Add an embedded package for embedded imports

This adds a new "embedded" package which can be used to import
system-like packages that are embedded into the binary.
This commit is contained in:
James Shubin
2024-02-22 19:02:33 -05:00
parent 9d8beb85d7
commit 70b5ed7067
7 changed files with 175 additions and 0 deletions

View File

@@ -486,6 +486,9 @@ func (obj *Main) Run() error {
}).Init()
// implementation of the World API (alternatives can be substituted in)
// XXX: The "implementation of the World API" should have more than just
// etcd in it, so this could live elsewhere package wise and just have
// an etcd component from the etcd package added in.
world := &etcd.World{
Hostname: hostname,
Client: etcdClient,