names

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package names provides utility functions to work with names.

Index

Constants

This section is empty.

Variables

View Source
var CurrentPackageLoggerNameCustomizer func(framesToSkip int) string

CurrentPackageLoggerNameCustomizer will override the default behavior of CurrentPackageLoggerNameGenerator if set.

View Source
var FullLoggerNameCustomizer func(something interface{}) string

FullLoggerNameCustomizer will override the default behavior of FullLoggerNameGenerator if set.

Functions

func CurrentPackageLoggerNameGenerator

func CurrentPackageLoggerNameGenerator(framesToSkip int) string

CurrentPackageLoggerNameGenerator creates a meaningful name for loggers with the package of the caller who calls this method (respecting the frameToSkip).

func FullLoggerNameGenerator

func FullLoggerNameGenerator(something interface{}) string

FullLoggerNameGenerator creates a meaningful name for loggers with the full name out of given objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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