Documentation ¶
Index ¶
- Variables
- func EncodeError(_ context.Context, err error, w http.ResponseWriter)
- func EncodePassword(password string, salt string) string
- func EncodeResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
- func EncodeTemplate(name string, tempContent string, paramContent interface{}) (string, error)
- func GetRandomString(n int, alphabets ...byte) string
- func HashString(byte []byte) string
- func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte
- func String(n int32) string
- type Response
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EncodeError ¶
func EncodeError(_ context.Context, err error, w http.ResponseWriter)
func EncodePassword ¶
func EncodeResponse ¶
func EncodeResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
func EncodeTemplate ¶
func GetRandomString ¶
func HashString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.