// NewRootData returns a RootData struct with good defaults
NewRootData returns a RootData struct with good defaults
// NewRootData returns a RootData struct with good defaults
func NewRootData(options ...RootDataOption) *RootData {
	root := new(RootData)
	group := NewGroup()
	group.Name = "NewDatabase"
	entry := NewEntry()
	entry.Values = append(entry.Values, ValueData{Key: "Title", Value: V{Content: "Sample Entry"}})
	group.Entries = append(group.Entries, entry)
	root.Groups = append(root.Groups, group)
	for _, option := range options {
		option(root)
	}
	return root
}
func NewRootData ( options ... RootDataOption ) * RootData { root := new ( RootData ) group := NewGroup ( ) group . Name = " " entry := NewEntry ( ) entry . Values = append ( entry . Values , ValueData { Key : " " , Value : V { Content : " " } } ) group . Entries = append ( group . Entries , entry ) root . Groups = append ( root . Groups , group ) for _ , option := range options { option ( root ) } return root }
NewRootData returns a RootData struct with good defaults
NewRootData returns a RootData struct with good defaults