view

package
v0.0.0-...-972597a Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Unlicense Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct{}

type Checkbox

type Checkbox struct{ Checked bool }

type Element

type Element interface{}

type Field

type Field struct{ Content string }

type Node

type Node struct {
	Name  string
	Type  string
	Value reflect.Value
	Slice bool

	Props    map[string]*Prop
	Children []*Node
}

func Parse

func Parse(name string, v interface{}) (*Node, error)

func (*Node) Bool

func (n *Node) Bool(name string) (bool, bool)

func (*Node) Str

func (n *Node) Str(name string) (string, bool)

type Point

type Point struct{ X, Y int }

type Prop

type Prop struct {
	Type  string
	Value reflect.Value
}

type Rectangle

type Rectangle struct{ Min, Max Point }

func Rect

func Rect(x0, y0, x1, y1 int) Rectangle

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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