feat: 添加从文件读取功能,添加测试用例文件

This commit is contained in:
fengxxc
2021-11-28 20:23:26 +08:00
parent 3d2ffb4ba9
commit ab6c8488d5
4 changed files with 100 additions and 67 deletions

13
test/test1.go Normal file
View 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)
}