structviewer

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackMsg

type BackMsg struct{}

Signal de retour au menu principal

type Model

type Model struct {
	// contains filtered or unexported fields
}

Modèle principal contenant l'état du sélecteur de fichier et de l'arbre de données

func New

func New(w, h int) Model

Initialisation du modèle et configuration du FilePicker avec le thème

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Node

type Node struct {
	Key      string
	Value    string
	Level    int
	Children []*Node
	Expanded bool
	IsLeaf   bool
}

Structure récursive représentant un nœud de l'arbre JSON/YAML

type SessionState

type SessionState int

États de la machine à états (sélection ou navigation)

const (
	StateSelectFile SessionState = iota
	StateTree
)

Jump to

Keyboard shortcuts

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