diff options
| author | adnano <[email protected]> | 2020-10-13 20:10:04 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-13 20:10:04 -0400 |
| commit | 4189a4f717879e1b29bc1846746de76d90a7b0d1 (patch) | |
| tree | 3190d76d559594fd099d04c98eaa0770f11325f2 /client.go | |
| parent | KnownHosts: use map instead of slice for underlying storage (diff) | |
| download | go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.tar.xz go-gemini-4189a4f717879e1b29bc1846746de76d90a7b0d1.zip | |
Move errors to gemini.go
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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. |