jsonrepair

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Title = "JSON Repair"

Variables

This section is empty.

Functions

func RepairJSON

func RepairJSON(content string) (string, error)

RepairJSON repairs malformed JSON string and returns the repaired version. This function is used by the CLI command.

Types

type JSONRepairModel

type JSONRepairModel struct {
	ui.BasePagerModel
}

func NewJSONRepairModel

func NewJSONRepairModel(common *ui.CommonModel) JSONRepairModel

func (JSONRepairModel) Init

func (m JSONRepairModel) Init() tea.Cmd

func (*JSONRepairModel) SetContent

func (m *JSONRepairModel) SetContent(content string) error

func (JSONRepairModel) Update

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

func (JSONRepairModel) View

func (m JSONRepairModel) View() string

Jump to

Keyboard shortcuts

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