util

package
v0.0.0-...-a6cadb0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(i int64) int64

Does not work for -1 << 63

func CheckPanicked

func CheckPanicked(panicer func()) (didPanic bool)

func CloseDb

func CloseDb(db *sqlx.DB, logger *log.Logger)

func EconomicStringSliceAppend

func EconomicStringSliceAppend(start []string, elem string) []string

func MapStringBoolToSlice

func MapStringBoolToSlice(sm map[string]bool) []string

func MapStringByteArrayToSlice

func MapStringByteArrayToSlice(sm map[string][]byte) []string

func RemoveExistingFile

func RemoveExistingFile(fname string, logger *log.Logger)

func RemoveFileIfExists

func RemoveFileIfExists(fname string, logger *log.Logger)

func StringSetHasAll

func StringSetHasAll(sm map[string]bool, ss []string) bool

func StringSliceToSet

func StringSliceToSet(ss []string) map[string]bool

func UnTitle

func UnTitle(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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