support

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.1.12

func Contains(haystack []string, needle string) bool

func ContainsStartsWith

func ContainsStartsWith(haystack []string, needle string) bool

func DetectContentType

func DetectContentType(fileName string) string

unfortunately mimetype golang module can not handle all files correclty js -> file is identified as text/plain so we make a simple test on file extension

func HomeDirectory added in v0.1.31

func HomeDirectory() string

func ReadFile added in v0.1.20

func ReadFile(file string) string

func RunningInAws added in v0.1.24

func RunningInAws() bool

func SanitizeSessionName added in v0.1.17

func SanitizeSessionName(val string) string

func SanitizeString

func SanitizeString(val string) string

func WriteToFile added in v0.1.12

func WriteToFile(targetFileName string, buffer bytes.Buffer)

func WriteToFileIfNotExists added in v0.1.20

func WriteToFileIfNotExists(file string, data string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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