loc

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package loc provides utility functions to count lines of code in files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountLinesOfCode

func CountLinesOfCode(packageDir, srcFile string) (int, error)

CountLinesOfCode returns the number of lines of code for a certain file in a specific package directory

It returns an error if there is something unexpected with the provided file

Types

This section is empty.

Jump to

Keyboard shortcuts

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