Files
checky/main.go

25 lines
284 B
Go
Raw Normal View History

2022-03-15 04:43:03 +00:00
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)
}