Commit Graph

20 Commits

Author SHA1 Message Date
tjpcc 0d904f9f10 Completed gemtext package.
resolves #2

- fuzz testing
- split out line parsing into a separate file
- changed line type-specific public []byte fields to string accessor methods
- added document parsing test for a stress test doc
- added dependency on stretchr/testify
2023-01-14 09:58:32 -07:00
tjpcc aa23984bc2 Initial gemtext package.
Contains:
- gemtext AST (Document and line types)
- Parse from an io.Reader
- ParseLine a []byte
- doc comments on everything
- ParseLine tests for every line type

Still needs tests for Parse & Document.
2023-01-13 10:50:30 -07:00
tjpcc 13f553c965 TODOs have been converted to gitea issues 2023-01-12 10:06:35 -07:00
tjpcc 370bd08946 aspirational! 2023-01-12 09:20:52 -07:00
tjpcc 064b1b304a test file rename 2023-01-12 09:20:43 -07:00
tjpcc 6be546d46b Improve host/port handling
...however unlikely gemini over IPv6 may be (hah!)
2023-01-12 09:19:43 -07:00
tjpcc 518d1a88cf more ambitions 2023-01-11 17:30:16 -07:00
tjpcc b93e6dfee9 convert the gemtext home page to markdown as the new README 2023-01-11 15:58:50 -07:00
tjpcc 9cbdbe8c8f there's a router in our future 2023-01-11 14:20:42 -07:00
tjpcc 029cd5b52d much more extensive gus/gemini testing 2023-01-11 13:19:42 -07:00
tjpcc 4969e33e28 WIP improve test coverage
There is a test of Response.Read that is failing and I haven't yet
figured out why.
2023-01-11 11:41:07 -07:00
tjpcc e183f9cd23 lots more documentation comments 2023-01-11 10:36:56 -07:00
tjpcc 197d8e4cb0 Improvements to Server lifecycle.
- NewServer doesn't allocate any resources besides the server object
  itself. So eg context.WithCancel is delayed until s.Serve().
- Add a demonstration of graceful shutdown on signals to the cgi
  example.
2023-01-11 10:33:44 -07:00
tjpcc cc0c7e6eb5 Simple client functionality and an example. 2023-01-11 10:12:32 -07:00
tjpcc e46658d475 branding change 2023-01-10 23:06:54 -07:00
tjpcc 918246ed72 remove some debugging prints, gofmt 2023-01-10 17:50:44 -07:00
tjpcc 474a28663f CGI improvements 2023-01-10 17:22:13 -07:00
tjpcc 96f3a7607f Add a CGI contrib 2023-01-10 13:46:35 -07:00
tjpcc db7b6ef072 add unlicense 2023-01-09 22:21:57 -07:00
tjpcc ff05d62013 Initial commit.
some basics:
 - minimal README
 - some TODOs
 - server and request handler framework
 - contribs: file serving, request logging
 - server examples
 - CI setup
2023-01-09 16:40:24 -07:00