common

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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 added in v0.2.1

type Slogger struct {
	*slog.Logger
}

func (Slogger) Debug added in v0.2.1

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

func (Slogger) Debugf added in v0.2.1

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

func (Slogger) Error added in v0.2.1

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

func (Slogger) Errorf added in v0.2.1

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

func (Slogger) Fatal added in v0.2.1

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

func (Slogger) Fatalf added in v0.2.1

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

func (Slogger) Info added in v0.2.1

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

func (Slogger) Infof added in v0.2.1

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

func (Slogger) Panic added in v0.2.1

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

func (Slogger) Panicf added in v0.2.1

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

func (Slogger) Warning added in v0.2.1

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

func (Slogger) Warningf added in v0.2.1

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