Git Product home page Git Product logo

bog's People

Contributors

deedlefake avatar

Watchers

 avatar  avatar  avatar

bog's Issues

all: add documentation

Yikes. I came back to this project for the first time in a bit and there's basically no documentation. That's probably not good.

bog: add pagination to indices

Fairly straightforward. It would be quite nice if indices could be paginated. The simplest option would probably to add some options to the metadata that allow the user to specify the number of items per page, and then add some stuff to the template that allow the user to create links to the first page, the previous page, the next page, and the last page, as well as get the number of the current page and the total number of pages.

bog: refactor to have a top-level, interrupt-canceled context

The current implementation has no clue what ^C is. It should.

Simple plan:

  1. Move main() contents to a separate function, such as run(context.Context) error.
  2. Set up a context in main() that is canceled when an os.Interrupt is received.
  3. Pass that context to run().
  4. Make sure that stuff is canceled by that context getting canceled properly.

Voila.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.