util

package
v0.0.0-...-5097b33 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockToSlice

func BlockToSlice(lines string) []string

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

func DiffMissing(left, right []string) ([]string, []string)

DiffMissing returns the left and right missing strings from 2 string slices

func DiffText

func DiffText(left, right string) (string, string)

DiffText outputs a diff from two strings

func EnvBytesToMap

func EnvBytesToMap(envBytes []byte) map[string]string

EnvBytesToMap converts an envfile to a map

func GetFileBytes

func GetFileBytes(path string) []byte

GetFileBytes returns bytes from a file when there is no error

func SliceToBlock

func SliceToBlock(lines []string) string

SliceToBlock takes a slice of strings and joins them with newlines

Types

This section is empty.

Jump to

Keyboard shortcuts

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