By Andrew Stewart (https://andrewinfosec.com)
A simple program to count the SLOC for Go code.
$ go run go-sloc.go < go-sloc.go
51
$ find . -name '*.go' ! -name '*_test.go' -exec cat {} \; | go-sloc
423
By Andrew Stewart (https://andrewinfosec.com)
A simple program to count the SLOC for Go code.
$ go run go-sloc.go < go-sloc.go
51
$ find . -name '*.go' ! -name '*_test.go' -exec cat {} \; | go-sloc
423