toolutils

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadYaml

func ReadYaml(dest any, file string)

(AI GENERATED DESCRIPTION): Parses a YAML file into the supplied destination object using strict decoding, terminating the program with an error message if the file cannot be opened or parsed.

Types

type StatusPrinter

type StatusPrinter struct {
	File    *os.File
	Padding int
}

func (StatusPrinter) Print

func (s StatusPrinter) Print(key string, value any)

(AI GENERATED DESCRIPTION): Prints a key‑value pair to the printer’s file, left‑padding the key with spaces so the output lines align.

Jump to

Keyboard shortcuts

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