x

Programs, configuration and documentation that don't fit anywhere else
Log | Files | Refs | README | LICENSE

commit 74566e714d2448293a6c527f8cb2c0c7abafabf9
parent 7a579223d798a09846387b8f947b10603c69e553
Author: Oliver Lowe <o@olowe.co>
Date:   Mon, 30 Dec 2024 17:10:19 +1100

Remove markdown to get 0 deps

Unused. I always use the lowdown command anyway.

Diffstat:
Msrc/go.mod | 2--
Msrc/go.sum | 2--
Dsrc/markdown/markdown.go | 27---------------------------
3 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/src/go.mod b/src/go.mod @@ -1,5 +1,3 @@ module olowe.co/x go 1.21.1 - -require github.com/yuin/goldmark v1.6.0 // indirect diff --git a/src/go.sum b/src/go.sum @@ -1,2 +0,0 @@ -github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68= -github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= diff --git a/src/markdown/markdown.go b/src/markdown/markdown.go @@ -1,27 +0,0 @@ -package main - -import ( - "bufio" - "fmt" - "os" - - "github.com/yuin/goldmark" -) - -func main() { - sc := bufio.NewScanner(os.Stdin) - var gotErr bool - for sc.Scan() { - if err := goldmark.Convert(sc.Bytes(), os.Stdout); err != nil { - fmt.Fprintln(os.Stderr, err) - gotErr = true - } - } - if sc.Err() != nil { - fmt.Fprintln(os.Stderr, sc.Err()) - gotErr = true - } - if gotErr { - os.Exit(1) - } -}