mirror of
https://github.com/fengxxc/wechatmp2markdown.git
synced 2026-03-17 08:50:53 +08:00
feat: 添加从文件读取功能,添加测试用例文件
This commit is contained in:
13
test/test1.go
Normal file
13
test/test1.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/fengxxc/wechatmp2markdown/parse"
|
||||
)
|
||||
|
||||
func Test1() {
|
||||
res := parse.ParseFromHTMLFile("./test/test1.html")
|
||||
fmt.Println("-------------------test1.html-------------------")
|
||||
fmt.Printf("%+v\n", res)
|
||||
}
|
||||
Reference in New Issue
Block a user