Documentation
¶
Overview ¶
Package common implements utility functions shared between other packages.
Index ¶
Constants ¶
View Source
const MimeJson = "application/json; charset=utf-8"
View Source
const MimePlain = "text/plain; charset=utf-8"
Variables ¶
View Source
var Version = "trunk"
Functions ¶
func HashPass ¶
HashPass returns the bcrypt hash of the provided string. If an empty string is provided, return an empty string.
func IsValidURL ¶
IsValidURL returns true if the provided URL is a valid-looking HTTP or HTTPS URL.
func ValidatePass ¶
ValidatePass returns true if the password matches the bcrypt hash, false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.