diff --git a/main.go b/main.go index f24351d..2992dc2 100644 --- a/main.go +++ b/main.go @@ -24,6 +24,7 @@ import ( "log" "os" "path/filepath" + "strings" "sync" "time" ) @@ -155,6 +156,12 @@ func addLicense(path string, fmode os.FileMode, typ string, data *copyrightData) return ioutil.WriteFile(path, b, fmode) } +var head = []string{ + "#!", // shell script + " -
Hello World!
diff --git a/testdata/expected/file2.xml b/testdata/expected/file2.xml new file mode 100644 index 0000000..ff225f8 --- /dev/null +++ b/testdata/expected/file2.xml @@ -0,0 +1,21 @@ + + + +