Documentation ¶
Index ¶
- func AskForConfirmation() bool
- func Assert(err error)
- func CopyFile(dst, src string) error
- func GetHashType(hash string) (string, error)
- func GetOpt(name, dfault string) string
- func GetSHA256(name string) string
- func Getopt(name, dfault string) string
- func ParseJSON(data []byte, path string) (out string)
- func ParseMail(r *http.Request) (email.Email, error)
- func RemoveDuplicates(elements []string) []string
- func RunCommand(cmd string, args ...string) string
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
func AskForConfirmation() bool
AskForConfirmation prompts user for yes/no response
func GetHashType ¶
GetHashType returns the hash type (md5, sha1, sha256, sha512)
func ParseJSON ¶
ParseJSON returns a JSON value for a given key NOTE: https://godoc.org/github.com/dustin/go-jsonpointer
func ParseMail ¶
ParseMail takes in an HTTP Request and returns an Email object TODO: This function will likely be changed to take in a []byte
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate items from a list
func StringInSlice ¶
StringInSlice returns whether or not a string exists in a slice
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package clitable implements methods for pretty command line table output.
|
Package clitable implements methods for pretty command line table output. |
Click to show internal directories.
Click to hide internal directories.