ui

package
v0.0.0-...-2144169 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User   = "USER"
	AI     = "AI"
	System = "SYSTEM"
	Tool   = "TOOL"
	API    = "API"
	Module = "MODULE"
	App    = "APP"
)

Variables

Functions

func Error

func Error(message string, err error)

func Info

func Info(message string)

func PrintChat

func PrintChat(name, message string)

func PrintChatDebug

func PrintChatDebug(name, message string)

func PromptChatInput

func PromptChatInput() string

func PromptConfirm

func PromptConfirm(prompt string) bool

func PromptInput

func PromptInput(prompt string) string

func Warn

func Warn(message string)

func Welcome

func Welcome(title, message string)

Types

type Theme

type Theme struct {
	Username *color.Color
	Message  *color.Color
	Useful   *color.Color
	AI       *color.Color
	User     *color.Color
	Info     *color.Color
	Error    *color.Color
	Warn     *color.Color
	App      *color.Color
	AppBold  *color.Color
}

Jump to

Keyboard shortcuts

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