File: main.go

package info (click to toggle)
golang-github-jaytaylor-html2text 0.0~git20211013.90c08c5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: makefile: 6
file content (20 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"bufio"
	"fmt"
	"os"

	"jaytaylor.com/html2text"
)

func main() {
	reader := bufio.NewReader(os.Stdin)
	opts := html2text.Options{}
	out, err := html2text.FromReader(reader, opts)
	if err != nil {
		fmt.Fprintf(os.Stderr, "error: %s\n", err)
		os.Exit(1)
	}
	fmt.Println(out)
}