GOSLOC

command module
v0.0.0-...-27a2c07 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gosloc

Install

go get -u github.com/GreenRaccoon23/gosloc;

Download

git clone https://github.com/GreenRaccoon23/gosloc.git;

Description

Command-line program to count source lines of code quickly.

Mostly works, but still in development.

[hiro@nakamura ~]$ gosloc -h;
gosloc <options> <path>...
  -i, --include string    File patterns to include, separated by commas
  -x, --exclude string    File patterns to exclude, separated by commas
  -c, --concurrency int   Max number of files to read simultaneously (default 1)
  -t, --total             Show a grand total, not the total for each file

WARNING: Setting concurrency too high will cause the program to crash.

Written in Go.

Binaries

I have compiled (but not tested) binaries for different platforms:

If you have Go installed, it is easier and more efficient to install this package with the install command. I added these binaries because I wanted to see if I could figure out how to make them.

There are no Android binaries because I have not figured out how to make them yet. I doubt anyone would want to run this program on an Android device anyway.

Why

Similar tools I found were painfully slow, required awkward workarounds, and/or did not include everything I needed for my use cases. So I wrote this instead.

It is much faster than the other tools I have tried. It processes about 5000 files a second on a laptop which was considered mid-range performance 7 years ago.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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