common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright © 2024 Thomas von Dein

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanError

func CleanError(file string, err error) error

func FileExists

func FileExists(filename string) bool

Types

type Slogger

type Slogger struct {
	*slog.Logger
}

func (Slogger) Debug

func (l Slogger) Debug(v ...interface{})

func (Slogger) Debugf

func (l Slogger) Debugf(format string, v ...interface{})

func (Slogger) Error

func (l Slogger) Error(v ...interface{})

func (Slogger) Errorf

func (l Slogger) Errorf(format string, v ...interface{})

func (Slogger) Fatal

func (l Slogger) Fatal(v ...interface{})

func (Slogger) Fatalf

func (l Slogger) Fatalf(format string, v ...interface{})

func (Slogger) Info

func (l Slogger) Info(v ...interface{})

func (Slogger) Infof

func (l Slogger) Infof(format string, v ...interface{})

func (Slogger) Panic

func (l Slogger) Panic(v ...interface{})

func (Slogger) Panicf

func (l Slogger) Panicf(format string, v ...interface{})

func (Slogger) Warning

func (l Slogger) Warning(v ...interface{})

func (Slogger) Warningf

func (l Slogger) Warningf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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