shared

package
v1.5.14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 3 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_DEBUG"
)

Env vars that affects Sypl.

Variables

This section is empty.

Functions

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