Skip to content

Instantly share code, notes, and snippets.

@laser
Created May 2, 2014 21:31
Show Gist options
  • Save laser/71e5da0949c783f355e1 to your computer and use it in GitHub Desktop.
Save laser/71e5da0949c783f355e1 to your computer and use it in GitHub Desktop.
TodoManager V2 IDL
interface TodoManager {
// returns all Todos
readTodos() []Todo
// creates new Todo and returns it with an id
createTodo(todo TodoProperties) Todo
// updates Todo and returns it
updateTodo(todo Todo) Todo
// deletes Todo and returns true
deleteTodo(id int) bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment