shared

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorPrefix = "[sypl] [Error]"
	WarnPrefix  = "[sypl] [Warn]"
)

Standard logging prefix for internal errors.

View Source
const (
	DefaultComponentNameOutput = "componentNameTest"
	DefaultContentOutput       = "contentTest"
	DefaultFileMode            = 0o644
	DefaultPrefixValue         = "My Prefix - "
	DefaultTimestampFormat     = "2006"
)

Default values used in tests.

View Source
const (
	FilterEnvVar = "SYPL_FILTER"
	DebugEnvVar  = "SYPL_LEVEL"
)

Env vars that affects Sypl.

Variables

This section is empty.

Functions

func GenerateUUID added in v1.9.2

func GenerateUUID() string

GenerateUUID generates a RFC4122 UUID and DCE 1.1: Authentication and Security Services.

func Inline added in v1.9.0

func Inline(data interface{}) string

Inline encodes JSON in line.

NOTE: Only exported fields of the data structure will be printed.

func Prettify

func Prettify(data interface{}) string

Prettify encodes data returning its JSON-stringified version.

NOTE: Only exported fields of the data structure will be printed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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