utils

package
v0.0.0-...-efd7f42 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(attempt string, password string) error

func Debugf

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

func Errorf

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

func Fatalf

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

func GetIni

func GetIni(section, key, defaultValue string) string

func HashPassword

func HashPassword(password string) (string, error)

func Infof

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

func Panicf

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

func SetLevel

func SetLevel(l Level)

func Warnf

func Warnf(format string, v ...interface{})

Types

type Level

type Level uint8
const DebugLevel Level = iota

Jump to

Keyboard shortcuts

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