utils

package
v0.0.0-...-f4ef62b Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ActiveBodyTemplate = `` /* 8552-byte string literal not displayed */
View Source
const ActiveContentType = "text/html; charset=UTF-8"
View Source
const ActiveFrom = "Dockboard <no-reply@dockboard.org>"
View Source
const ActiveSubject = "Dockboard 激活邮件"

Variables

This section is empty.

Functions

func DecodeBasicAuth

func DecodeBasicAuth(authorization string) (username string, password string, err error)

decode the authorization string

func EncodeBasicAuth

func EncodeBasicAuth(username string, password string) string

Encode the authorization string

func IsDirExists

func IsDirExists(path string) bool

func RemoveDuplicateString

func RemoveDuplicateString(s *[]string)

func SendEmail

func SendEmail(email *Email) error

Types

type Email

type Email struct {
	Host        string
	Port        int
	User        string
	Password    string
	From        string
	To          string
	Subject     string
	ContentType string
	Body        string
}

Jump to

Keyboard shortcuts

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