util

package
v0.0.0-...-f1ebe90 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const UUIDLen = 36
View Source
const UUIDRegexp = "[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"

Variables

This section is empty.

Functions

func IsUUID

func IsUUID(s string) bool

Types

type Logger

type Logger struct {
	*zap.SugaredLogger
}

Logger wraps zap.SugaredLogger.

func NewLogger

func NewLogger() *Logger

NewLogger creates a Logger.

func (*Logger) Sync

func (l *Logger) Sync()

Sync flushes cache to disk.

Jump to

Keyboard shortcuts

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