Initial Template structure

This commit is contained in:
Ian Gulliver
2022-03-16 00:03:27 +00:00
parent 8621abfa62
commit de51449f7d
2 changed files with 18 additions and 24 deletions

24
main.go
View File

@@ -1,27 +1,7 @@
package main
import "fmt"
import "github.com/google/uuid"
// import "fmt"
// import "github.com/google/uuid"
func main() {
store := NewStore("foo")
out := &Template{
Id: uuid.NewString(),
Test: "round trip",
}
store.Write(out)
in := &Template{
Id: out.Id,
}
store.Read(in)
fmt.Printf("%+v\n", in)
bus := NewBus()
bus.Announce(in)
}