index

package
v0.0.0-...-51ef3e9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCard

func GetCard(name string) (string, error)

func Init

func Init(path string) error

Types

type Prompt

type Prompt struct {
	Name        string                 `json:"name"`
	Tags        []string               `json:"tags,omitempty"`
	Meta        map[string]interface{} `json:"meta,omitempty"`
	Version     string                 `json:"version"`
	Text        string                 `json:"text"`
	Description string                 `json:"description"`
}

Prompt data model.

func GetPrompt

func GetPrompt(name string) (*Prompt, error)

func GetPrompts

func GetPrompts() []*Prompt

type PromptIndex

type PromptIndex map[string]*Prompt

Jump to

Keyboard shortcuts

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