managedblock

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package managedblock updates marker-delimited file sections.

Index

Constants

View Source
const (
	// SkeeperGitignoreBegin marks the start of skeeper's managed .gitignore block.
	SkeeperGitignoreBegin = "# >>> skeeper ignored specs >>>"
	// SkeeperGitignoreEnd marks the end of skeeper's managed .gitignore block.
	SkeeperGitignoreEnd = "# <<< skeeper ignored specs <<<"
)

Variables

This section is empty.

Functions

func Replace

func Replace(content, begin, end string) string

Replace removes the block between begin and end markers from content.

func WriteFile

func WriteFile(path string, data []byte, perm os.FileMode) error

WriteFile writes data to path, syncs it, and closes the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL