Documentation ¶
Index ¶
- func ConcatBuffer(vals ...string) string
- func ConcatCopy(len int, vals ...string) string
- func DeleteCookie(w *http.ResponseWriter, cookieName string)
- func DownloadFile(sourceUrl string, dstFolder string) (string, error)
- func Fibo(n uint) uint
- func FindEmail(input string) (string, error)
- func GenerateId() string
- func MeanValue(x []float64) float64
- func MedianValue(x []float64) float64
- func PerformanceTest() int
- func RandInt(min, max int64) int64
- func Variance(x []float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatBuffer ¶
The ConcatBuffer() function quickly concatenates strings. This feature is useful for optimizing code that needs to quickly concatenate strings.
func ConcatCopy ¶
The ConcatCopy() function is a very fast string concatenation, but requires knowing the length of the string, since anything over that length will be lost. This feature is useful for optimizing code that needs to quickly concatenate strings.
func DeleteCookie ¶
func DeleteCookie(w *http.ResponseWriter, cookieName string)
The DeleteCookie(w) function deletes the cookie
func DownloadFile ¶ added in v0.0.2
The DownloadFile() function downloads a file from a remote host and writes it to the specified folder, the function returns the file name.
func Fibo ¶
The Fibo() function is a fast implementation of the Fibonacci number via finite recursion.
func FindEmail ¶
The FindEmail() function looks for an email address in a string and returns it or an error.
func GenerateId ¶
func GenerateId() string
The GenerateId() generates a new id in a random, cryptographically secure manner
func MedianValue ¶
The MedianValue() function returns the median value of a slice of real numbers.
func PerformanceTest ¶
func PerformanceTest() int
The PerformanceTest() function measures the amount of time the current time is added to the slice in 3 seconds. This feature can be used to evaluate the performance of your computer.
Types ¶
This section is empty.