scripting

package module
v0.0.0-...-13c0dbd Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

scripting

Misc scripting utilities

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(command string, arguments []string)

Execute the `command` with the given `arguments`. Panic if the command fails.

func ReadFile

func ReadFile(filename string) []byte

Read the contents of file named by `filename` as a byte slice. Panic if the command fails.

func ReplaceExt

func ReplaceExt(path, origExt, newExt string) string

Replace path extension `origExt` with new extension `newExt`. Panic if `path` does not have extension `origExt`.

func Try

func Try(err error)

If `err` is not nil, panic with that error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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