utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCommand added in v0.2.1

func ExtractCommand(response string) string

func GeneratePrompt

func GeneratePrompt(promptTemplate string, input string) string

func GetFileList

func GetFileList(dir string, separator string, max int) (string, error)

func PrintStruct

func PrintStruct(s interface{})

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(prefix string) *Loader

func (*Loader) SetInterval

func (l *Loader) SetInterval(interval time.Duration)

func (*Loader) SetMaxDots

func (l *Loader) SetMaxDots(maxDots int)

func (*Loader) Start

func (l *Loader) Start() *Loader

func (*Loader) Stop

func (l *Loader) Stop()

Jump to

Keyboard shortcuts

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