Help us shape the future of Go! Take the 2026 Go Developer Survey

instructions

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Overview

Package instructions charge AGENTS.md et TENON.md depuis la racine du projet pour les injecter dans le prompt système.

Index

Constants

View Source
const MaxBytes = 32768

MaxBytes est la taille maximale retenue pour chaque fichier d'instructions.

Variables

This section is empty.

Functions

func Render

func Render(base string, files []File) string

Render ajoute une section par fichier à base ; sans fichier, base est renvoyé inchangé.

Types

type File

type File struct {
	Name      string
	Content   string
	Truncated bool
}

File est un fichier d'instructions chargé.

func Load

func Load(root string) ([]File, error)

Load lit AGENTS.md puis TENON.md à la racine uniquement. Les fichiers absents ou non réguliers (liens symboliques inclus) sont ignorés : un dépôt non fiable ne doit pas pouvoir injecter un fichier extérieur au projet.

Jump to

Keyboard shortcuts

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