adoc/adoc.go

24 lines
335 B
Go
Raw Normal View History

2022-03-10 06:10:36 +01:00
package adoc
import (
"time"
2022-03-15 15:16:15 +01:00
"ewintr.nl/adoc/element"
2022-03-10 06:10:36 +01:00
)
type ADoc struct {
Title string
Attributes map[string]string
Author string
Path string
Date time.Time
2022-03-15 15:16:15 +01:00
Content []element.Element
2022-03-10 06:10:36 +01:00
}
func NewADoc() *ADoc {
return &ADoc{
Attributes: map[string]string{},
2022-03-15 15:16:15 +01:00
Content: []element.Element{},
2022-03-10 06:10:36 +01:00
}
}