Documentation ¶
Index ¶
- func Contains(haystack []string, needle string) bool
- func ContainsStartsWith(haystack []string, needle string) bool
- func DetectContentType(fileName string) string
- func HomeDirectory() string
- func ReadFile(file string) string
- func RunningInAws() bool
- func SanitizeSessionName(val string) string
- func SanitizeString(val string) string
- func WriteToFile(targetFileName string, buffer bytes.Buffer)
- func WriteToFileIfNotExists(file string, data string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsStartsWith ¶
func DetectContentType ¶
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 RunningInAws ¶ added in v0.1.24
func RunningInAws() bool
func SanitizeSessionName ¶ added in v0.1.17
func SanitizeString ¶
func WriteToFile ¶ added in v0.1.12
func WriteToFileIfNotExists ¶ added in v0.1.20
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.