narratio/editor/state.go

13 lines
157 B
Go

package editor
type State struct {
Err error
Document *Document
}
func NewState() *State {
return &State{
Document: NewDocument("new doc"),
}
}