all options
trixie  ] [  forky  ] [  sid  ]
[ Source: goda  ]

Package: goda (0.5.7-1 and others)

Links for goda

Screenshot

Debian Resources:

Download Source Package goda:

Maintainers:

External Resources:

Similar packages:

Go Dependency Analysis - værktøjssæt

Goda er et Go-afhængighedsanalyseværktøjssæt. Det indeholder værktøjer til at udregne hvad dit program bruger.

Goda kan en masse:

  # All of the commands should be run in the cloned repository.
  git clone https://github.com/loov/goda && cd goda

  # draw a graph of packages in github.com/loov/goda
  goda graph "github.com/loov/goda/..." | dot -Tsvg -o graph.svg

  # draw a dependency graph of github.com/loov/goda and dependencies
  goda graph -cluster -short "github.com/loov/goda:all" | dot -Tsvg -o
  graph.svg

  # list direct dependencies of github.com/loov/goda
  goda list "github.com/loov/goda/...:import"

  # list dependency graph that reaches flag package, including std
  goda graph -std "reach(github.com/loov/goda/...:all, flag)" | dot -Tsvg -o
  graph.svg

  # list packages shared by github.com/loov/goda/pkgset and github.com/loov
  /goda/cut
  goda list "shared(github.com/loov/goda/pkgset:all, github.com/loov
  /goda/cut:all)"

  # list packages that are only imported for tests
  goda list "github.com/loov/goda/...:+test:all - github.com/loov
  /goda/...:all"

  # list packages that are imported with `purego` tag
  goda list -std "purego=1(github.com/loov/goda/...:all)"

  # list packages that are imported for windows and not linux
  goda list "goos=windows(github.com/loov/goda/...:all) -
  goos=linux(github.com/loov/goda/...:all)"

  # list how much memory each symbol in the final binary is taking
  goda weight -h $GOPATH/bin/goda

  # show the impact of cutting a package
  goda cut ./...:all

  # print dependency tree of all sub-packages
  goda tree ./...:all

  # print stats while building a go program
  go build -a --toolexec "goda exec" .

  # list dependency graph in same format as "go mod graph"
  goda graph -type edges -f '{{.ID}}{{if .Module}}{{with
  .Module.Version}}@{{.}}{{end}}{{end}}' ./...:all

Forskellen fra »go list« eller »go mod«.

»Go list« og »go mod« er tæt integreret med Go og kan svare på simple forespørgsler med kompatibilitet. De fungerer også som gode byggeblokke for andre værktøjer.

Goda er lavet til mere komplicerede forespørgsler og analyse. Nogle af funktionerne kan genskabes via formatflag og skripter. Dette bibliotek forsøger dog at gøre selv kompliceret analyse hurtig.

Goda kan også bruges sammen med »go list« og »go mod«.

Other Packages Related to goda

  • depends
  • recommends
  • suggests
  • enhances

Download goda

Download for all available architectures
Architecture Version Package Size Installed Size Files
amd64 0.5.7-1+b1 2,960.1 kB9,071.0 kB [list of files]
arm64 0.5.7-1 2,532.7 kB8,622.0 kB [list of files]
armhf 0.5.7-1 2,498.9 kB8,637.0 kB [list of files]
i386 0.5.7-1 2,702.6 kB8,642.0 kB [list of files]
ppc64el 0.5.7-1 2,516.2 kB8,877.0 kB [list of files]
riscv64 0.5.7-1 2,522.3 kB8,493.0 kB [list of files]
s390x 0.5.7-1 2,676.9 kB9,646.0 kB [list of files]