utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStderr

func CaptureStderr(callback func()) (string, error)

CaptureStderr get the error output

func CaptureStdout

func CaptureStdout(callback func()) (string, error)

CaptureStdout get the stdout output

func CreateAndWriteContentInTempFile added in v0.2.0

func CreateAndWriteContentInTempFile(tempFilePattern string, content string) (*os.File, error)

CreateAndWriteContentInTempFile writes the string content in a temporary file based in a pattern and creating the file in the default tmpDir of the machine

func GetRouteRelativePath

func GetRouteRelativePath(numRelativePath int, relativePath string) (*string, error)

GetRouteRelativePath get the relative path folder based in number of relative paths indicated

Types

This section is empty.

Jump to

Keyboard shortcuts

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