go-premailer:Golang中HTML邮件的内联样式

时间:2021-05-07 06:29:10
【文件属性】:
文件名称:go-premailer:Golang中HTML邮件的内联样式
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-07 06:29:10
html golang mail email inline-css 去邮递员 Golang中HTML邮件的内联样式 文档 安装 go get github.com/vanng822/go-premailer/premailer 例子 import ( "fmt" "github.com/vanng822/go-premailer/premailer" "log" ) func main() { prem, err := premailer.NewPremailerFromFile(inputFile, premailer.NewOptions()) if err != nil { log.Fatal(err) } html, err := prem.Transform() if err != nil { log.Fatal(err) } fmt.Println(html) } 输入 <html> <head> <title>
【文件预览】:
go-premailer-master
----.travis.yml(498B)
----cmd()
--------server()
--------script()
----LICENSE(1KB)
----.gitignore(21B)
----premailer()
--------premailer_from_file_test.go(843B)
--------premailer_from_file.go(513B)
--------specificity.go(1KB)
--------doc.go(905B)
--------main_test.go(219B)
--------data()
--------style_rule.go(170B)
--------options.go(759B)
--------element.go(2KB)
--------premailer.go(6KB)
--------premailer_test.go(12KB)
--------specificity_test.go(4KB)
--------premailer_from_string.go(451B)
--------premailer_from_bytes.go(436B)
--------util.go(714B)
--------selector_compatible_test.go(2KB)
--------premailer_from_bytes_test.go(1KB)
--------benchmark_test.go(1KB)
----Makefile(331B)
----go.sum(4KB)
----README.md(2KB)
----go.mod(365B)

网友评论