Skip to content

Instantly share code, notes, and snippets.

@wyattjoh
Last active September 5, 2016 15:30
Show Gist options
  • Save wyattjoh/0ef4ffb0824d2cdacb62a7e6e581d207 to your computer and use it in GitHub Desktop.
Save wyattjoh/0ef4ffb0824d2cdacb62a7e6e581d207 to your computer and use it in GitHub Desktop.

TODO Rundown

Task 1: Seperate implementation from librairy

Seperate your code into a new structure matching the following:

cmd
 `- todo
lib

Where lib contains a package called todo which will contain your librairy code and cmd/todo contains your cli implementation.

Task 2: Create a HTTP Web App

Create a new folder cmd/todod where you can put a net/http based server that will serve up a static web application which will interact with a http based JSON API that you will write within cmd/todod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment