tui

package
v0.0.0-...-2f2da42 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run is the main entrypoint for the TUI application.

Types

type AppData

type AppData struct {
	Notes     []Note     `json:"notes"`
	Folders   []string   `json:"folders"`
	Tags      []string   `json:"tags"`
	Templates []Template `json:"templates"`
	NextID    int        `json:"next_id"`
}

type Note

type Note struct {
	ID        int       `json:"id"`
	Title     string    `json:"title"`
	Content   string    `json:"content"`
	Tags      []string  `json:"tags"`
	Folder    string    `json:"folder"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Data structures

type Template

type Template struct {
	Name    string   `json:"name"`
	Content string   `json:"content"`
	Tags    []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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