Documentation
¶
Index ¶
- Variables
- func NewRootTreeNode(i interface{}) *tview.TreeNode
- func UnMarshalJSON(in io.Reader) (interface{}, error)
- type Gui
- func (g *Gui) AddNode()
- func (g *Gui) AddValue()
- func (g *Gui) EditWithEditor()
- func (g *Gui) Form(fieldLabel []string, doneLabel, title, pageName string, height int, ...)
- func (g *Gui) Input(text, label string, width int, doneFunc func(text string))
- func (g *Gui) LoadJSON()
- func (g *Gui) MakeJSON(node *tview.TreeNode) interface{}
- func (g *Gui) Message(message, page string, doneFunc func())
- func (g *Gui) Modal(p tview.Primitive, width, height int) tview.Primitive
- func (g *Gui) NaviPanel()
- func (g *Gui) Run(i interface{}) error
- func (g *Gui) SaveJSON()
- func (g *Gui) SaveJSONToFile(file string) error
- func (g *Gui) Search()
- type JSONType
- type Navi
- type Reference
- type Tree
- type ValueType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyJSON = errors.New("empty json")
)
View Source
var RedColor = `[red::b]%s[white]: %s`
Functions ¶
func NewRootTreeNode ¶
func UnMarshalJSON ¶
Types ¶
type Gui ¶
type Gui struct { Tree *Tree App *tview.Application Pages *tview.Pages }
func (*Gui) EditWithEditor ¶
func (g *Gui) EditWithEditor()
func (*Gui) SaveJSONToFile ¶
type Navi ¶
type Navi struct {
}func (*Navi) SetKeybindings ¶
func (*Navi) UpdateView ¶
func (n *Navi) UpdateView()
type Tree ¶
func (*Tree) CollapseValues ¶
func (*Tree) NewNodeWithLiteral ¶
func (*Tree) SetKeybindings ¶
func (*Tree) UpdateView ¶
Click to show internal directories.
Click to hide internal directories.