mirror of
https://github.com/golang-standards/project-layout.git
synced 2025-12-17 15:27:54 +00:00
On *nix systems it's a common convention to end a file with an empty
newline. It also helps if the newline is present if user wants to
simply cat a file in the command line.
I used the following one-liner to automatically add newlines in all
files that don't have it:
$ find . -path ./.git -prune -o -type f -a ! -name .keep -exec sh -c '[[ $(tail -c1 "$1" | wc -l) -gt 0 ]] || echo >> "$1"' sh {} \;
|
||
|---|---|---|
| .. | ||
| README.md | ||
/scripts
Scripts to perform various build, install, analysis, etc operations.
These scripts keep the root level Makefile small and simple.
Examples: