types

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneThroughJSON

func CloneThroughJSON(oldConfig, newConfig any)

Types

type Commands added in v1.7.0

type Commands map[string]string

Commands represents a set of named prompts for quick-starting conversations. It supports two YAML formats:

commands:

df: "check disk space"
ls: "list files"

or

commands:

  • df: "check disk space"
  • ls: "list files"

func (*Commands) UnmarshalYAML added in v1.7.0

func (c *Commands) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML supports both map and list-of-singleton-maps syntaxes.

type StringOrList

type StringOrList []string

func (*StringOrList) UnmarshalYAML

func (sm *StringOrList) UnmarshalYAML(unmarshal func(any) error) error

Jump to

Keyboard shortcuts

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