Files
bkl/document.go
2023-10-15 21:47:28 -07:00

22 lines
287 B
Go

package bkl
import (
"go.jetpack.io/typeid"
)
type Document struct {
ID typeid.TypeID
Parents []*Document
Data any
}
func NewDocument() *Document {
return &Document{
ID: typeid.Must(typeid.New("doc")),
}
}
func (d *Document) String() string {
return d.ID.String()
}