|
@@ -14,8 +14,15 @@ func doCommand(cmd string) {
|
|
|
fmt.Println(err.Error())
|
|
|
return
|
|
|
}
|
|
|
- fmt.Print("finish.... result is:")
|
|
|
fmt.Print(string(stdout))
|
|
|
+ cmdRes2 := exec.Command("libreoffice", "--headless", "--convert-to html", "*.docx", "--outdir", "output")
|
|
|
+ stdout2, err2 := cmdRes2.Output()
|
|
|
+ if err2 != nil {
|
|
|
+ fmt.Println(err2.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ fmt.Print("finish.... result is:")
|
|
|
+ fmt.Print(string(stdout2))
|
|
|
}
|
|
|
|
|
|
func main() {
|