Documentation
¶
Index ¶
- type DiffResult
- type Doc
- func (d *Doc) Copy() Doc
- func (d *Doc) Diff(doc *Doc) DiffResult
- func (d *Doc) Equals(doc Doc) bool
- func (d *Doc) GetName() string
- func (d *Doc) IsInsideCodeBlock(lineIndex int) bool
- func (d *Doc) ToString() string
- func (d *Doc) Update(a *action.Action) error
- func (d *Doc) UpdateUsage(a *action.Action) error
- func (d *Doc) WriteToFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffResult ¶
type Doc ¶
type Doc struct {
// contains filtered or unexported fields
}
func NewDocOrCreate ¶ added in v0.5.0
NewDocOrCreate creates a new Doc from an existing file, or creates a new file with template content if it doesn't exist
func NewEmptyDoc ¶ added in v0.5.0
NewEmptyDoc creates an empty Doc with just the name (used for comparing against non-existent files)
func (*Doc) Diff ¶
func (d *Doc) Diff(doc *Doc) DiffResult
func (*Doc) IsInsideCodeBlock ¶ added in v0.7.0
IsInsideCodeBlock checks if the line at the given index is inside a markdown code block
func (*Doc) WriteToFile ¶
Click to show internal directories.
Click to hide internal directories.