util

package
v0.0.0-...-d9c4052 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2014 License: GPL-3.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crypt

func Crypt(str string) (string, error)

func Hash

func Hash(h string) string

Hash hashes a string

func HashMD5

func HashMD5(s string) string

HashMD5 returns the md5 hash of a string

func IsValidLink(URL string) (bool, string, string)

func IsValidURL

func IsValidURL(URL string) bool

func NewFileName

func NewFileName(extension string) string

NewFileName returns an unique name for the file

func NewRandomHash

func NewRandomHash() string

NewRandomHash returns a random hash

func RandomString

func RandomString(n int) string

RandomString returns a new random string

func ResponseTitle

func ResponseTitle(resp *http.Response) string

func Strlen

func Strlen(s string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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