aboutsummaryrefslogtreecommitdiff
path: root/text.go
Commit message (Collapse)AuthorAgeFilesLines
* text: Update documentationAdnan Maolood2021-02-231-9/+10
|
* Add missing error handlingHugo Wetterberg2021-01-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error handling is currently missing is a couple of places. Most of them are i/o related. This change adds checks, an therefore sometimes also has to change function signatures by adding an error return value. In the case of the response writer the status and meta handling is changed and this also breaks the API. In some places where we don't have any reasonable I've added assignment to a blank identifier to make it clear that we're ignoring an error. text: read the Err() that can be set by the scanner. client: check if conn.SetDeadline() returns an error. client: check if req.Write() returns an error. fs: panic if mime type registration fails. server: stop performing i/o in Header/Status functions By deferring the actual header write to the first Write() or Flush() call we don't have to do any error handling in Header() or Status(). As Server.respond() now defers a ResponseWriter.Flush() instead of directly flushing the underlying bufio.Writer this has the added benefit of ensuring that we always write a header to the client, even if the responder is a complete NOOP. tofu: return an error if we fail to write to the known hosts writer.
* Add ParseLines functionAdnan Maolood2020-10-291-39/+49
|
* Remove (Text).HTML functionv0.1.1Adnan Maolood2020-10-261-68/+0
|
* Rename repository to go-geminiAdnan Maolood2020-10-241-1/+1
|
* Add (Text).HTML function to render text to HTMLadnano2020-10-151-0/+68
|
* Prevent other packages from implementing Lineadnano2020-10-131-8/+35
|
* Update commentsadnano2020-10-111-1/+1
|
* Fix parsing of links without namesadnano2020-09-291-4/+9
|
* Add newlines after Gemini text linesadnano2020-09-291-0/+1
|
* Implement parsing of Gemini text responsesadnano2020-09-291-0/+119