Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeContentInBlock ¶
func ChangeContentInBlock(currentContent, blockStartPattern, blockEndPattern, blockContentStr string) string
ChangeContentInBlock - checks the currentContent whether a `blockStartPattern` and `blockEndPattern` block is already present. If there is, then only the block's content will be modified. If there's no marked block in the content yet then append it to the existing content with the `blockContentStr` content in the block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.