common

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Desensitize

func Desensitize(data string) string

Desensitize data desensitization.

func GetEnv

func GetEnv(key string, defVal string) string

func HttpDo

func HttpDo(method, reqUrl string, reqBody io.Reader, headerPairs ...KeyValue) ([]byte, string, error)

func HttpUrl

func HttpUrl(rawUrl string, paramPairs ...KeyValue) (*url.URL, error)

func SetHttpConf

func SetHttpConf(conf config.HttpConf)

func SmtpDo

func SmtpDo(addr string, auth smtp.Auth, from, to, subject, body string) error

SmtpDo has been tested on mail.qq.com

Types

type KeyValue

type KeyValue map[string]string

Jump to

Keyboard shortcuts

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