add test code for reading pdf files

This commit is contained in:
RockYang
2024-06-26 18:50:48 +08:00
parent 2526feb0d9
commit 88e510d07a
11 changed files with 155 additions and 15 deletions

View File

@@ -2,8 +2,15 @@ package main
import (
"fmt"
"geekai/utils"
)
func main() {
fmt.Println(fmt.Sprintf("%v", float64(90)/100))
file := "http://nk.img.r9it.com/chatgpt-plus/1719389335351828.xlsx"
content, err := utils.ReadPdf(file)
if err != nil {
panic(err)
}
fmt.Println(content)
}