utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) bool

func EnsureDir

func EnsureDir(path string) error

func PrintBanner

func PrintBanner()

func PrintError

func PrintError(format string, args ...any)

func PrintInfo

func PrintInfo(format string, args ...any)

func PrintSuccess

func PrintSuccess(format string, args ...any)

func PrintWarn

func PrintWarn(format string, args ...any)

func PromptYesNoDefaultYes

func PromptYesNoDefaultYes(question string) bool

func SanitizeFilename

func SanitizeFilename(name string) string

func SaveJSONDebug

func SaveJSONDebug(dir, name string, data []byte)

func SaveText

func SaveText(path string, content string) error

func SaveTimestamped

func SaveTimestamped(dir, prefix, ext string, data []byte) (string, error)

func SaveToFile

func SaveToFile(path string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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