common

package
v0.0.0-...-b8bf632 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenID

func GenID(len int) (string, error)

GenID generates an ID string with length len.

func ID

func ID() string

ID generates an ID string with the default length.

Types

type Logger

type Logger interface {
	Print(v ...any)
	Printf(format string, v ...any)
	Println(v ...any)

	Prefix() string
	SetPrefix(prefix string)
}

Logger is a simple interface for logging providers.

Jump to

Keyboard shortcuts

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