depth alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view depth alternatives based on common mentions on social networks and blogs.
-
JuiceFS
JuiceFS is a distributed POSIX file system built on top of Redis and S3. -
JSON-to-Go
Translates JSON into a Go type in your browser instantly (original) -
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
Peanut
๐บ Deploy Databases and Services Easily for Development and Testing Pipelines. -
golang-tutorials
Golang Tutorials. Learn Golang from Scratch with simple examples. -
xdg-go
Go implementation of the XDG Base Directory Specification and XDG user directories -
typex
[TOOL, CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
golang-ipc
Golang Inter-process communication library for Window, Mac and Linux. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
gotestdox
A tool for formatting Go test results as readable documentation -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
An exit strategy for go routines.
An exit strategy for go routines -
import "github/shuLhan/share"
A collection of libraries and tools written in Go; including DNS, email, git ini file format, HTTP, memfs (embedding file into Go), paseto, SMTP, TOTP, WebSocket, XMLRPC, and many more. -
go-james
James is your butler and helps you to create, build, debug, test and run your Go projects -
generator-go-lang
A Yeoman generator to get new Go projects started. -
go-sanitize
:bathtub: Golang library of simple to use sanitation functions -
gomodrun
The forgotten go tool that executes and caches binaries included in go.mod files. -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
Proofable
General purpose proving framework for certifying digital assets to public blockchains -
go-whatsonchain
:link: Unofficial golang implementation for the WhatsOnChain API -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
redispubsub
Redis Streams queue driver for https://godoc.org/gocloud.dev/pubsub package -
go-slices
Helper functions for the manipulation of slices of all types in Go -
MessageBus implementation for CQRS projects
CQRS Implementation for Golang language -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules.
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of depth or a related project?
Popular Comparisons
README
depth
depth
is tool to retrieve and visualize Go source code dependency trees.
Install
Download the appropriate binary for your platform from the Releases page, or:
go get github.com/KyleBanks/depth/cmd/depth
Usage
depth
can be used as a standalone command-line application, or as a package within your own project.
Command-Line
Simply execute depth
with one or more package names to visualize. You can use the fully qualified import path of the package, like so:
$ depth github.com/KyleBanks/depth/cmd/depth
github.com/KyleBanks/depth/cmd/depth
โ encoding/json
โ flag
โ fmt
โ io
โ log
โ os
โ strings
โ github.com/KyleBanks/depth
โ fmt
โ go/build
โ path
โ sort
โ strings
12 dependencies (11 internal, 1 external, 0 testing).
Or you can use a relative path, for example:
$ depth .
$ depth ./cmd/depth
$ depth ../
You can also use depth
on the Go standard library:
$ depth strings
strings
โ errors
โ internal/bytealg
โ io
โ sync
โ unicode
โ unicode/utf8
โ unsafe
7 dependencies (7 internal, 0 external, 0 testing).
Visualizing multiple packages at a time is supported by simply naming the packages you'd like to visualize:
$ depth strings github.com/KyleBanks/depth
strings
โ errors
โ internal/bytealg
โ io
โ sync
โ unicode
โ unicode/utf8
โ unsafe
7 dependencies (7 internal, 0 external, 0 testing).
github.com/KyleBanks/depth
โ bytes
โ errors
โ go/build
โ os
โ path
โ sort
โ strings
7 dependencies (7 internal, 0 external, 0 testing).
-internal
By default, depth
only resolves the top level of dependencies for standard library packages, however you can use the -internal
flag to visualize all internal dependencies:
$ depth -internal strings
strings
โ errors
โ โ internal/reflectlite
โ โ internal/unsafeheader
โ โ โ unsafe
โ โ runtime
โ โ โ internal/abi
โ โ โ โ unsafe
โ โ โ internal/bytealg
โ โ โ โ internal/cpu
โ โ โ โ unsafe
โ โ โ internal/cpu
โ โ โ internal/goexperiment
โ โ โ runtime/internal/atomic
โ โ โ โ unsafe
โ โ โ runtime/internal/math
โ โ โ โ runtime/internal/sys
โ โ โ runtime/internal/sys
โ โ โ unsafe
โ โ unsafe
โ internal/bytealg
โ io
โ โ errors
โ โ sync
โ โ internal/race
โ โ โ unsafe
โ โ runtime
โ โ sync/atomic
โ โ โ unsafe
โ โ unsafe
โ sync
โ unicode
โ unicode/utf8
โ unsafe
18 dependencies (18 internal, 0 external, 0 testing).
-max
The -max
flag limits the dependency tree to the maximum depth provided. For example, if you supply -max 1
on the depth
package, your output would look like so:
$ depth -max 1 github.com/KyleBanks/depth/cmd/depth
github.com/KyleBanks/depth/cmd/depth
โ encoding/json
โ flag
โ fmt
โ io
โ log
โ os
โ strings
โ github.com/KyleBanks/depth
7 dependencies (6 internal, 1 external, 0 testing).
The -max
flag is particularly useful in conjunction with the -internal
flag which can lead to very deep dependency trees.
-test
By default, depth
ignores dependencies that are only required for testing. However, you can view test dependencies using the -test
flag:
$ depth -test strings
strings
โ bytes
โ errors
โ fmt
โ internal/bytealg
โ internal/testenv
โ io
โ math/rand
โ reflect
โ strconv
โ sync
โ testing
โ unicode
โ unicode/utf8
โ unsafe
14 dependencies (14 internal, 0 external, 7 testing).
-explain target-package
The -explain
flag instructs depth
to print import chains in which the
target-package
is found:
$ depth -explain strings github.com/KyleBanks/depth/cmd/depth
github.com/KyleBanks/depth/cmd/depth -> strings
github.com/KyleBanks/depth/cmd/depth -> github.com/KyleBanks/depth -> strings
-json
The -json
flag instructs depth
to output dependencies in JSON format:
$ depth -json github.com/KyleBanks/depth/cmd/depth
{
"name": "github.com/KyleBanks/depth/cmd/depth",
"deps": [
{
"name": "encoding/json",
"internal": true,
"deps": null
},
...
{
"name": "github.com/KyleBanks/depth",
"internal": false,
"deps": [
{
"name": "go/build",
"internal": true,
"deps": null
},
...
]
}
]
}
Integrating With Your Project
The depth
package can easily be used to retrieve the dependency tree for a particular package in your own project. For example, here's how you would retrieve the dependency tree for the strings
package:
import "github.com/KyleBanks/depth"
var t depth.Tree
err := t.Resolve("strings")
if err != nil {
log.Fatal(err)
}
// Output: "'strings' has 4 dependencies."
log.Printf("'%v' has %v dependencies.", t.Root.Name, len(t.Root.Deps))
For additional customization, simply set the appropriate flags on the Tree
before resolving:
import "github.com/KyleBanks/depth"
t := depth.Tree {
ResolveInternal: true,
ResolveTest: true,
MaxDepth: 10,
}
err := t.Resolve("strings")
Author
depth
was developed by Kyle Banks.
License
depth
is available under the [MIT](./LICENSE) license.
*Note that all licence references and agreements mentioned in the depth README section above
are relevant to that project's source code only.