depth

package
v0.0.0-...-a6e9a46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

godepth

Count the maxdepth of go functions. It's helpful to see if a function needs to be splitted into several smaller functions, for readability purpose.

To install, run

$ go get github.com/arthurgustin/godepth

examples:

$ godepth .
$ godepth -over 3
$ godepth -avg

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Depth

func Depth(packagePath string) ([]string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL