count

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassExtensions = []string{".class", ".classdata", ".clj", ".groovy", ".kts"}

Functions

func Classes

func Classes(path string) (int, error)

Classes counts class files in the given path. It first checks for a modules file (Java 9+) and falls back to counting JAR files for older Java versions.

func JarClasses

func JarClasses(path string) (int, error)

JarClasses counts class files in JAR files and directories recursively

func JarClassesFrom

func JarClassesFrom(paths ...string) (int, int, error)

JarClassesFrom counts classes from multiple JAR files, returning count and number of skipped paths

Types

This section is empty.

Jump to

Keyboard shortcuts

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