jsonview

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayJSON

func DisplayJSON(title string, json gjson.Result)

func ExploreJSON

func ExploreJSON(title string, json gjson.Result) error

func RenderJSON

func RenderJSON(title string, json gjson.Result) string

Types

type JSONView

type JSONView interface {
	GetPath() string
	GetData() gjson.Result
	Update(tea.Msg) tea.Cmd
	View() string
	Resize(width, height int)
}

type JSONViewer

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

func (*JSONViewer) Init

func (v *JSONViewer) Init() tea.Cmd

func (*JSONViewer) Update

func (v *JSONViewer) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*JSONViewer) View

func (v *JSONViewer) View() string

type TableView

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

func (*TableView) GetData

func (tv *TableView) GetData() gjson.Result

func (*TableView) GetPath

func (tv *TableView) GetPath() string

func (*TableView) Resize

func (tv *TableView) Resize(width, height int)

func (*TableView) Update

func (tv *TableView) Update(msg tea.Msg) tea.Cmd

func (*TableView) View

func (tv *TableView) View() string

type TextView

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

func (*TextView) GetData

func (tv *TextView) GetData() gjson.Result

func (*TextView) GetPath

func (tv *TextView) GetPath() string

func (*TextView) Resize

func (tv *TextView) Resize(width, height int)

func (*TextView) Update

func (tv *TextView) Update(msg tea.Msg) tea.Cmd

func (*TextView) View

func (tv *TextView) View() string

Jump to

Keyboard shortcuts

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