files

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package files contains filesystem helpers that preserve user-authored agent files.

Index

Constants

View Source
const DefaultMarker = "goforj-atlas"

DefaultMarker is the marker used for generated Atlas guideline blocks.

Variables

This section is empty.

Functions

func Block

func Block(marker string, content string) string

Block returns a generated marker block for content.

func MergeMarkerBlock

func MergeMarkerBlock(existing string, marker string, generated string) string

MergeMarkerBlock replaces generated marker content while preserving user text.

func RemoveMarkerBlock added in v0.3.1

func RemoveMarkerBlock(existing string, marker string) string

RemoveMarkerBlock removes generated marker blocks while preserving surrounding user content.

func WriteFile

func WriteFile(path string, content []byte) error

WriteFile creates parent directories and writes content to path.

func WriteMarkerFile

func WriteMarkerFile(path string, marker string, generated string) error

WriteMarkerFile merges generated content into an Atlas marker block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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