Skip to content

Instantly share code, notes, and snippets.

@jaredfolkins
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredfolkins/778d40cf52b0927c7c69 to your computer and use it in GitHub Desktop.
Save jaredfolkins/778d40cf52b0927c7c69 to your computer and use it in GitHub Desktop.
Using gorename to refactor the gorethink rethinkdb driver.
gorename -from '"github.com/dancannon/gorethink".Db' -to DB -v
gorename -from '"github.com/dancannon/gorethink".DbCreate' -to DBCreate -v
gorename -from '"github.com/dancannon/gorethink".DbDrop' -to DBDrop -v
gorename -from '"github.com/dancannon/gorethink".RqlCompileError' -to ErrRQLCompile -v
gorename -from '"github.com/dancannon/gorethink".RqlRuntimeError' -to ErrRQLRuntime -v
gorename -from '"github.com/dancannon/gorethink".RqlClientError' -to ErrRQLClient -v
gorename -from '"github.com/dancannon/gorethink".RqlDriverError' -to ErrRQLDriver -v
gorename -from '"github.com/dancannon/gorethink".RqlConnectionError' -to ErrRQLConnection -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment