Skip to content

New graph types and expressions

Choose a tag to compare

@egonelbre egonelbre released this 06 Mar 12:57

New expression:

  • incoming(X, Y) - packages from X that directly import a package in Y

New option for goda graph -type flag:

  • tgf - Trivial Graph Format, which is one of the simplest graph formats.
  • graphml - GraphML comprehensive format that can be used together with tools like yEd.
  • digraph - that can be used together with digraph tool.
  • edges - outputs each import edge on a separate line, can be useful grepping.

Label formatting has two new utility functions, which help to make the graph/list labels shorter:

  • {{ .ID | rel "github.com/loov/goda" }}, uses relative names for packages starting with "github.com/loov/goda".
  • {{ .ID | rename "github.com" "$gh" }}, renames package path "github.com" with "$gh", as an example "github.com/loov/goda" would be renamed to "$gh/loov/goda".