utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEnv

func ConvertEnv(env map[string]string) []string

func FileExists

func FileExists(file string) bool

func IsExitError

func IsExitError(err error) bool

func IsURL

func IsURL(s string) bool

IsURL checks if given string is a valid URL

func LastLine

func LastLine(r io.Reader) (l string)

func MapKeys

func MapKeys(m interface{}) (keys []string)

func RenderString

func RenderString(tmpl string, variables map[string]string) (string, error)

Types

type Binary

type Binary struct {
	Bin  string
	Args []string
}

Jump to

Keyboard shortcuts

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