narratio/editor/state.go

13 lines
157 B
Go
Raw Normal View History

2024-05-10 12:06:40 +02:00
package editor
type State struct {
2024-09-14 14:54:41 +02:00
Err error
Document *Document
2024-05-10 12:06:40 +02:00
}
func NewState() *State {
2024-09-14 14:54:41 +02:00
return &State{
Document: NewDocument("new doc"),
}
2024-05-10 12:06:40 +02:00
}