adoc/adoc.go

23 lines
312 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
Date time.Time
2022-03-15 15:16:15 +01:00
Content []element.Element
2022-03-10 06:10:36 +01:00
}
2022-03-29 06:13:52 +02:00
func New() *ADoc {
2022-03-10 06:10:36 +01:00
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
}
}