cmd

package
v0.0.0-...-c890d14 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertOutputToListOfMaps

func ConvertOutputToListOfMaps(data bytes.Buffer) ([]map[string]any, error)

ConvertOutputToListOfMaps converts a list of json string formatted to a list of map objects

func ConvertOutputToMap

func ConvertOutputToMap(data bytes.Buffer) (map[string]any, error)

ConvertOutputToMap converts a json string formatted to a map object

func Run

func Run(command *exec.Cmd) (bytes.Buffer, bytes.Buffer, error)

Run executes the os.exec command provided

Types

This section is empty.

Jump to

Keyboard shortcuts

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