From b57a558b0a4732bc692119ab6d411fbd0d9427dd Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Aug 2020 00:07:05 +0100 Subject: [PATCH] include go reference in readme and minor fixes Signed-off-by: Michael --- README.md | 2 ++ go.mod | 2 +- go.sum | 4 ++-- upload/upload.go | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 229c5fe..d8f4e88 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Discoupload +[![PkgGoDev](https://pkg.go.dev/badge/github.com/michaellindman/discoupload/upload?tab=doc)](https://pkg.go.dev/github.com/michaellindman/discoupload/upload?tab=doc) + Application for uploading files to the [discourse](https://www.discourse.org) forum software using the [discourse API](https://docs.discourse.org). ## Requirements diff --git a/go.mod b/go.mod index 088bb39..a707011 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/michaellindman/discoupload go 1.14 require ( - git.0cd.xyz/michael/request v0.0.5 + github.com/michaellindman/request v0.0.5 github.com/pkg/errors v0.9.1 gopkg.in/yaml.v2 v2.3.0 ) diff --git a/go.sum b/go.sum index 3bfc724..e68c795 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -git.0cd.xyz/michael/request v0.0.5 h1:Vbyyb/9PwIeIES6hpfbDd2uuWGpTBxH7M1UOqTeBPRg= -git.0cd.xyz/michael/request v0.0.5/go.mod h1:oyVCWzVMlGOfQal6KsDwvWIsKeszVsOTT6JTRK9qAqo= +github.com/michaellindman/request v0.0.5 h1:X+Ir1rZ1QieG8E2jj05aey6QSrqC5N1+pqDSxMEkMA0= +github.com/michaellindman/request v0.0.5/go.mod h1:h4Iti/hHTMj52wDqq6y24u8ROiTZkcc6Hy2tnM0mq8o= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/upload/upload.go b/upload/upload.go index 776c9cd..b1673ba 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -8,7 +8,7 @@ import ( "net/http" "os" - "git.0cd.xyz/michael/request" + "github.com/michaellindman/request" ) // Upload file to discourse server