Skip to content

Instantly share code, notes, and snippets.

@jabley
Last active August 29, 2015 14:13
Show Gist options
  • Save jabley/43b7d95d13555a0a6043 to your computer and use it in GitHub Desktop.
Save jabley/43b7d95d13555a0a6043 to your computer and use it in GitHub Desktop.
Python and Go side-by-side

We have 2 projects:

https://github.com/alphagov/backdrop/tree/master/backdrop/write implements the existing write API.

The Go version is virtually identical on a feature basis, except it's faster :)

Writing

Python entry point

https://github.com/alphagov/backdrop/blob/master/backdrop/write/api.py#L111

Go entry point

https://github.com/alphagov/performance-datastore/blob/master/pkg/handlers/handlers.go#L50

Clearing

Python entry point

https://github.com/alphagov/backdrop/blob/master/backdrop/write/api.py#L139

Go entry point

https://github.com/alphagov/performance-datastore/blob/master/pkg/handlers/handlers.go#L70

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