misc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorfulLevelName

func ColorfulLevelName(le level.Level) string

func ModuleNameAbbr

func ModuleNameAbbr(moduleName string) string

ModuleNameAbbr change a module name to abbreviation

func SetLevelWithColor

func SetLevelWithColor(le level.Level, textColor color.Color, backgroundColor color.Color)

SetLevelWithColor specify the color for level

Types

type CallGraphInfo

type CallGraphInfo struct {
	PackageName string
	FileName    string
	Line        int
}

func CallGraph

func CallGraph(skip int) CallGraphInfo

CallGraph analyze the package name and file lines of the caller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳