log

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug prints a debug-level message to stdout if DEBUG is enabled.

func Debugf

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

Debugf prints a formatted debug-level message to stdout if DEBUG is enabled.

func Error

func Error(args ...any)

Error prints an error-level message to stderr.

func Errorf

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

Errorf prints a formatted error-level message to stderr.

func Exit

func Exit(code int, args ...any)

func Exitf

func Exitf(code int, msg string, args ...any)

func Info

func Info(args ...any)

Info prints an info-level message to stdout.

func Infof

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

Infof prints a formatted info-level message to stdout.

func PrintCode

func PrintCode(code string, lang string)

PrintCode prints a multi-line code snippet or file content to stdout with optional syntax highlighting. lang controls the syntax highlighter; pass "toml", "yaml", "json", "go", etc. If lang is empty or "auto", the lexer will be auto-detected. If highlighting fails or colors are disabled, the code is printed as plain text. Intended for TOML, YAML, JSON, Go, etc.

func Success

func Success(args ...any)

Success prints a success-level message to stdout.

func Successf

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

Successf prints a formatted success-level message to stdout.

func Warn

func Warn(args ...any)

Warn prints a warning-level message to stdout.

func Warnf

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

Warnf prints a formatted warning-level message to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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