util

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForDecimalMode

func CheckForDecimalMode(mode int, directory bool) error

/ CheckForDecimalMode fails if the specified mode appears to have been / incorrectly specified in decimal instead of octal.

func EnsurePathWithinFilesDir

func EnsurePathWithinFilesDir(path, filesDir string) error

func MakeDataURL

func MakeDataURL(contents []byte, currentCompression *string, allowCompression bool) (uri string, gzipped bool, err error)

func MergeTranslatedConfigs

func MergeTranslatedConfigs(parent interface{}, parentTranslations translate.TranslationSet, child interface{}, childTranslations translate.TranslationSet) (interface{}, translate.TranslationSet)

MergeTranslatedConfigs merges a parent and child config and returns the result. It also generates and returns the merged TranslationSet by mapping the parent/child TranslationSets through the merge transcript.

func VerifyTranslations

func VerifyTranslations(t *testing.T, set translate.TranslationSet, exceptions []translate.Translation)

VerifyTranslations ensures all the translations are identity, unless they match a listed one, and verifies that all the listed ones exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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