Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir copies a dir from src to dst. src should be a full path. Also dst too. If src is a file, then will invoke CopyFile. If src is a dir, then will copy all the files it contains to dst. * ##### Example
```go package main
import (
"github.com/andy-zhangtao/gogather/tools" "fmt"
)
func main() { err := tools.CopyDir("/Users/zhangtao/SourceCode/golang/go/src/temp/test", "/tmp/test") if err != nil { fmt.Println(err) } }
```
Types ¶
type Email ¶
type Email struct { /*Host MailGun主机地址*/ Host string `json:"host"` /*UserName MailGun用户名*/ Username string `json:"user"` /*PassWord MailGun口令*/ Password string `json:"passwd"` /*Port MailGun邮件发送端口*/ Port int `json:"port"` /*Dest 目标邮件地址列表*/ Dest []string `json:"dest"` /*Content 邮件内容*/ Content string `json:"content"` /*Header 邮件主题*/ Header string `json:"header"` }
Write by zhangtao<ztao8607@gmail.com> . In 2018/3/12.
Click to show internal directories.
Click to hide internal directories.