util

package
v0.0.0-...-1e43bc6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CheckGoroutineCount bool
View Source
var InternalPanicf = func(format string, args ...interface{}) {
	if len(args) > 0 {
		log.Panicf(format, args)
	}
	log.Panic(format)
}
View Source
var ProfileStartStop func() func()
View Source
var ReadOptimizations []FileHandleOptimization

FileHandleOptimizations is populated by individual OS-specific init()s

Functions

func AvailableMapKeys

func AvailableMapKeys(m interface{}) string

func Commify

func Commify(inVal int) []byte

func Commify64

func Commify64(inVal int64) []byte

func SubHelp

func SubHelp(description string, optSet *getopt.Set) (sh []string)

Types

type FileHandleOptimization

type FileHandleOptimization struct {
	Name   string
	Action func(
		file *os.File,
		stat os.FileInfo,
	) error
}

type PanicfWrapper

type PanicfWrapper func(panicfFormat string, panicfArgs ...interface{})

Jump to

Keyboard shortcuts

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