Documentation
¶
Index ¶
Constants ¶
View Source
const ( MarkerBegin = "<!--envdoc:begin-->" MarkerEnd = "<!--envdoc:end-->" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor handles in-place editing of files with marker-based content replacement
func (*Editor) ReplaceSection ¶
ReplaceSection replaces the content between markers with newContent. If the file doesn't exist, it creates a new file with markers wrapping the content. If the file exists, it finds the markers and replaces only the content between them.
Click to show internal directories.
Click to hide internal directories.