shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FromAssistant = From{"assistant"}
	FromSystem    = From{"system"}
	FromUser      = From{"user"}
	FromKind      = enum.New(FromAssistant, FromSystem, FromUser)
)

Functions

func MachTelemetry

func MachTelemetry(mach *machine.Machine, logArgs machine.LogArgsMapper)

func Map

func Map[A, B any](vals []A, f func(A) B) []B

func P

func P(txt string, args ...any)

P formats and prints the given string after de-denting and trimming it, and returns the number of bytes written and any error.

func Sj

func Sj(parts ...string) string

string join

func Sl

func Sl(txt string, args ...any) string

func Sp

func Sp(txt string, args ...any) string

Sp formats a de-dented and trimmed string using the provided arguments, similar to fmt.Sprintf.

Types

type From

type From enum.Member[string]

Jump to

Keyboard shortcuts

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