Skip to content

Instantly share code, notes, and snippets.

@squeedee
Created August 11, 2015 20:52
Show Gist options
  • Save squeedee/69ff23984cfc6a2bfd19 to your computer and use it in GitHub Desktop.
Save squeedee/69ff23984cfc6a2bfd19 to your computer and use it in GitHub Desktop.

Funk Declaration - incomplete

Goal

  • To create a directed graph of all dependencies and dependent elements in Go Lang Projects
  • To present this graph in Structure 101, a great tool for finding dependency hell.

Successes

  • Found the func!
  • Traversed the Syntax tree of Golang to find declaration elements
  • Parsed all the packages in a Golang package spec. (such as ./...)
  • Discovered the best structure for visualising dependency nesting in GoLang

Ongoing

  • Share the func!
  • Attaching receiver functions to their receivers and not to the file they're declared in
  • Second pass to discover usage dependencies.
  • Spit it all out into XML for Structure 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment