Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 385 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 385 Bytes

go-sloc: Count SLOC for Go code

By Andrew Stewart (https://andrewinfosec.com)

A simple program to count the SLOC for Go code.

Example usage

$ go run go-sloc.go < go-sloc.go 
51

$ find . -name '*.go' ! -name '*_test.go' -exec cat {} \; | go-sloc
423