func ProcessFile(inputFilename string) error {
	var err error
	outputFilename := inputFilename + ".fixed.epub"
	inputFile, err := os.Open(inputFilename)
	if err != nil {
		return err
	}
	defer inputFile.Close()
	inputStats, err := inputFile.Stat()
	if err != nil {
		return err
	}
	zipReader, err := zip.NewReader(inputFile, inputStats.Size())
	if err != nil {
		return err
	}

	book, err := ParseEPUB(zipReader)
	if err != nil {
		return err
	}

	PatchBook(book)

	err = SaveEPUB(book, outputFilename)
	if err != nil {
		return err
	}

	return err
}
//ProcessFile Perform fix on file
ProcessFile Perform fix on file
// ProcessFile Perform fix on file
func ProcessFile(inputFilename string) error {
	var err error
	outputFilename := inputFilename + ".fixed.epub"
	inputFile, err := os.Open(inputFilename)
	if err != nil {
		return err
	}
	defer inputFile.Close()
	inputStats, err := inputFile.Stat()
	if err != nil {
		return err
	}
	zipReader, err := zip.NewReader(inputFile, inputStats.Size())
	if err != nil {
		return err
	}
	book, err := ParseEPUB(zipReader)
	if err != nil {
		return err
	}
	PatchBook(book)
	err = SaveEPUB(book, outputFilename)
	if err != nil {
		return err
	}
	return err
}
func ProcessFile ( inputFilename string ) error { var err error outputFilename := inputFilename + " " inputFile , err := os . Open ( inputFilename ) if err != nil { return err } defer inputFile . Close ( ) inputStats , err := inputFile . Stat ( ) if err != nil { return err } zipReader , err := zip . NewReader ( inputFile , inputStats . Size ( ) ) if err != nil { return err } book , err := ParseEPUB ( zipReader ) if err != nil { return err } PatchBook ( book ) err = SaveEPUB ( book , outputFilename ) if err != nil { return err } return err }
ProcessFile Perform fix on file
ProcessFile Perform fix on file