From a8a5b7d83db1c8171bdfcb2eff40785109f6690d Mon Sep 17 00:00:00 2001 From: Jason Stewart Date: Fri, 29 Jul 2022 12:56:59 -0400 Subject: [PATCH 1/3] - as go module - added command binary to .gitignore --- .gitignore | 1 + cmd/html2text/main.go | 2 +- go.mod | 11 +++++++++++ go.sum | 8 ++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore index daf913b..a5cb407 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ _cgo_gotypes.go _cgo_export.* _testmain.go +cmd/html2text/html2text *.exe *.test diff --git a/cmd/html2text/main.go b/cmd/html2text/main.go index e287c18..3ac3ad8 100644 --- a/cmd/html2text/main.go +++ b/cmd/html2text/main.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "jaytaylor.com/html2text" + "github.com/jaytaylor/html2text" ) func main() { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d1e395d --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module github.com/jaytaylor/html2text + +go 1.18 + +require ( + github.com/olekukonko/tablewriter v0.0.5 + github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf + golang.org/x/net v0.0.0-20220728211354-c7608f3a8462 +) + +require github.com/mattn/go-runewidth v0.0.9 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..7cdd1f8 --- /dev/null +++ b/go.sum @@ -0,0 +1,8 @@ +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf h1:pvbZ0lM0XWPBqUKqFU8cmavspvIl9nulOYwdy6IFRRo= +github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf/go.mod h1:RJID2RhlZKId02nZ62WenDCkgHFerpIOmW0iT7GKmXM= +golang.org/x/net v0.0.0-20220728211354-c7608f3a8462 h1:UreQrH7DbFXSi9ZFox6FNT3WBooWmdANpU+IfkT1T4I= +golang.org/x/net v0.0.0-20220728211354-c7608f3a8462/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= From 527804b031888619465a4e0223591c28070fb123 Mon Sep 17 00:00:00 2001 From: Jason Stewart Date: Mon, 28 Jul 2025 04:43:03 -0400 Subject: [PATCH 2/3] updated package paths --- README.md | 8 +++----- cmd/html2text/main.go | 2 +- go.mod | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 675e281..173908c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # html2text -[![Documentation](https://godoc.org/github.com/jaytaylor/html2text?status.svg)](https://godoc.org/github.com/jaytaylor/html2text) -[![Build Status](https://travis-ci.org/jaytaylor/html2text.svg?branch=master)](https://travis-ci.org/jaytaylor/html2text) -[![Report Card](https://goreportcard.com/badge/github.com/jaytaylor/html2text)](https://goreportcard.com/report/github.com/jaytaylor/html2text) +[![Documentation](https://godoc.org/github.com/BourgeoisBear/html2text?status.svg)](https://godoc.org/github.com/BourgeoisBear/html2text) ### Converts HTML into text of the markdown-flavored variety @@ -21,7 +19,7 @@ It requires go 1.x or newer ;) ## Download the package ```bash -go get jaytaylor.com/html2text +go get github.com/BourgeoisBear.com/html2text ``` ## Example usage @@ -34,7 +32,7 @@ package main import ( "fmt" - "jaytaylor.com/html2text" + "github.com/BourgeoisBear.com/html2text" ) func main() { diff --git a/cmd/html2text/main.go b/cmd/html2text/main.go index 3ac3ad8..d2b0c64 100644 --- a/cmd/html2text/main.go +++ b/cmd/html2text/main.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/jaytaylor/html2text" + "github.com/BourgeoisBear/html2text" ) func main() { diff --git a/go.mod b/go.mod index d1e395d..51961f1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/jaytaylor/html2text +module github.com/BourgeoisBear/html2text go 1.18 From f8ed2fb1d3ac9f3980ebf8822dc1d8921c254fba Mon Sep 17 00:00:00 2001 From: Jason Stewart Date: Mon, 28 Jul 2025 04:50:33 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 173908c..9af79f7 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,6 @@ There are still lots of improvements to be had, but FWIW this has worked fine fo It requires go 1.x or newer ;) -## Download the package - -```bash -go get github.com/BourgeoisBear.com/html2text -``` - ## Example usage ### Library @@ -32,7 +26,7 @@ package main import ( "fmt" - "github.com/BourgeoisBear.com/html2text" + "github.com/BourgeoisBear/html2text" ) func main() {