* Document extractor service * Fixing vendor modules * Addressing PR Review comments * Some small simplifications * Fixing a linter complain * simplifying a bit the code using package variables Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
19 строки
234 B
Go
19 строки
234 B
Go
// +build appengine
|
|
|
|
package docconv
|
|
|
|
import (
|
|
"io"
|
|
"io/ioutil"
|
|
"log"
|
|
)
|
|
|
|
func HTMLReadability(r io.Reader) []byte {
|
|
b, err := ioutil.ReadAll(r)
|
|
if err != nil {
|
|
log.Printf("HTMLReadability: %v", err)
|
|
return nil
|
|
}
|
|
return b
|
|
}
|