utilities

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomFormat

func CustomFormat(s []byte, kwargs map[string][]byte) []byte

CustomFormat is a placeholder for your existing CustomFormat function Implement this function according to your needs

func Printer

func Printer(tag string, message string, color string)

This function maps ANSI codes to color names to change text color. It returns the passed message in the colour name and returns a white color as a default color if the color name passed wasn't found in color dictionary. Args: - message string: The message to be be color formatted - tag string: The color code tag - color string: The color to be used Returns: - string responses of top border, rows, and headers

Types

type Prompts

type Prompts struct {
	ChatPrompt string `yaml:"chat_prompt"`
}

func LoadPrompts

func LoadPrompts(filename string, promptFS embed.FS) (*Prompts, error)

Jump to

Keyboard shortcuts

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