Initial Store implementation

This commit is contained in:
Ian Gulliver
2022-03-15 04:43:03 +00:00
parent 53511b9da7
commit 4a22289ae2
6 changed files with 125 additions and 2 deletions

24
main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
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)
}