util

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 12 Imported by: 3,177

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBasicAuthHeader

func DecodeBasicAuthHeader(header string) (string, string, error)

func EncodeMd5

func EncodeMd5(str string) string

Encode string to md5 hex value.

func EncodePassword

func EncodePassword(password string, salt string) string

func GetBasicAuthHeader

func GetBasicAuthHeader(user string, password string) string

func IsEmail

func IsEmail(str string) bool

func JoinUrlFragments

func JoinUrlFragments(a, b string) string

func PBKDF2

func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte

http://code.google.com/p/go/source/browse/pbkdf2/pbkdf2.go?repo=crypto

Types

type DynMap

type DynMap map[string]interface{}

type UrlQueryReader

type UrlQueryReader struct {
	// contains filtered or unexported fields
}

func NewUrlQueryReader

func NewUrlQueryReader(url *url.URL) *UrlQueryReader

func (*UrlQueryReader) Get

func (r *UrlQueryReader) Get(name string, def string) string

Directories

Path Synopsis
xorm module

Jump to

Keyboard shortcuts

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