Documentation ¶
Index ¶
- func BlockToSlice(lines string) []string
- func CheckError(e error)
- func DiffMissing(left, right []string) ([]string, []string)
- func DiffText(left, right string) (string, string)
- func EnvBytesToMap(envBytes []byte) map[string]string
- func GetFileBytes(path string) []byte
- func SliceToBlock(lines []string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockToSlice ¶
BlockToSlice takes a slice of strings and joins them with newlines
func CheckError ¶
func CheckError(e error)
CheckError logs a fatal error and exits when an error is passed
func DiffMissing ¶
DiffMissing returns the left and right missing strings from 2 string slices
func EnvBytesToMap ¶
EnvBytesToMap converts an envfile to a map
func GetFileBytes ¶
GetFileBytes returns bytes from a file when there is no error
func SliceToBlock ¶
SliceToBlock takes a slice of strings and joins them with newlines
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.