types

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo struct {
	Content string
}

func (*Echo) Init

func (m *Echo) Init() tea.Cmd

func (*Echo) Update

func (m *Echo) Update(_ tea.Msg) (tea.Model, tea.Cmd)

func (*Echo) View

func (m *Echo) View() string

type Thing

type Thing struct {
	Name string `json:"data"`
	Type string `json:"type"`
}

func (*Thing) JSON

func (t *Thing) JSON() (string, error)

func (*Thing) Markdown

func (t *Thing) Markdown() string

func (*Thing) YAML

func (t *Thing) YAML() (string, error)

type ThingList

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

func NewThingList

func NewThingList(thingType string, things ...*types.EntityInfo) *ThingList

func (*ThingList) Items

func (t *ThingList) Items() []*types.EntityInfo

func (*ThingList) JSON

func (t *ThingList) JSON() (string, error)

func (*ThingList) Plural

func (t *ThingList) Plural() string

func (*ThingList) Singular

func (t *ThingList) Singular() string

func (*ThingList) YAML

func (t *ThingList) YAML() (string, error)

Jump to

Keyboard shortcuts

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