Documentation ¶
Index ¶
- func Compress(src []byte, dest io.Writer, level int)
- func CompressByte(src []byte) []byte
- func Decompress(src io.Reader, dest io.Writer)
- func DecompressByte(src []byte) []byte
- func IsUrl(str string) bool
- func NewAPIKey(n int) string
- func NewUUID() (string, error)
- func NewUUID2() (string, error)
- func SliceIndex(value string, slice []string) int
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressByte ¶
Compression Source: https://github.com/schollz/gofind/blob/master/utils.go#L146-L169
https://github.com/schollz/gofind/blob/master/fingerprint.go#L43-L54
Description:
Compress and Decompress bytes
func DecompressByte ¶
func NewAPIKey ¶
NewAPIKey generates and returns an apikey of desired length @param int length of apikey @returns string
func NewUUID ¶
NewUUID generates and returns url friendly uuid Source: http://play.golang.org/p/4FkNSiUDMg @returns string @returns error
func SliceIndex ¶
sliceIndex loops through a []string and returns the index of a string Description:
Loops through array of strings Checks each string in array for match If string match occurs returns index
@param value {string} string to find @param slice {[]string} array of strings to search @returns int
func StringInSlice ¶
stringInSlice loops through a []string and returns a bool if string is found @param a {string} string to find @param list {[]string} array of strings to search @returns bool
Types ¶
This section is empty.