mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-07 17:53:42 +08:00
add test code for reading pdf files
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user