com

package
v0.0.0-...-22acef4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(call func()) (output []byte, err error)

Capture captures stderr and stdout of a given function call.

func CaptureWithCGo

func CaptureWithCGo(call func()) (output []byte, err error)

CaptureWithCGo captures stderr and stdout as well as stderr and stdout of C of a given function call.

func IOClose

func IOClose(name string, c io.Closer)

func IfStringInArray

func IfStringInArray(a string, list []string) bool

IfStringInArray return whether a string in string array

func IsFile

func IsFile(filePath string) bool

IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

func PathExists

func PathExists(path string) bool

PathExists return true if given path exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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