aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-10-13 20:10:04 -0400
committeradnano <[email protected]>2020-10-13 20:10:04 -0400
commit4189a4f717879e1b29bc1846746de76d90a7b0d1 (patch)
tree3190d76d559594fd099d04c98eaa0770f11325f2 /client.go
parentKnownHosts: use map instead of slice for underlying storage (diff)
downloadgo-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.tar.xz
go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.zip
Move errors to gemini.go
Diffstat (limited to 'client.go')
-rw-r--r--client.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/client.go b/client.go
index b6e227d..37a668c 100644
--- a/client.go
+++ b/client.go
@@ -4,21 +4,12 @@ import (
"bufio"
"crypto/tls"
"crypto/x509"
- "errors"
"io/ioutil"
"net"
"net/url"
"strconv"
)
-// Client errors.
-var (
- ErrInvalidURL = errors.New("gemini: invalid URL")
- ErrInvalidResponse = errors.New("gemini: invalid response")
- ErrCertificateUnknown = errors.New("gemini: unknown certificate")
- ErrCertificateNotTrusted = errors.New("gemini: certificate is not trusted")
-)
-
// Request represents a Gemini request.
type Request struct {
// URL specifies the URL being requested.