diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 11:26:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 11:26:07 -0600 |
| commit | 899cbb3483ee67fc9b868531b9c16bea5d364aee (patch) | |
| tree | d227e3f2436dd98f66c340e3d32433927590bcc9 /doWITCOM.go | |
| parent | a6c5755fcd98d4ae769c8b1e5a25ef1ff47722a7 (diff) | |
maybe right?
Diffstat (limited to 'doWITCOM.go')
| -rw-r--r-- | doWITCOM.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doWITCOM.go b/doWITCOM.go index 221602a..83b2662 100644 --- a/doWITCOM.go +++ b/doWITCOM.go @@ -43,6 +43,7 @@ func addCommonHeader(filename string) error { var start bool = true var found bool + var done bool // drop the old copywrite lines for _, line := range strings.Split(string(data), "\n") { @@ -61,11 +62,14 @@ func addCommonHeader(filename string) error { if strings.HasPrefix(line, "//") && found { continue } else { + found = false + } + if !done { fmt.Fprintln(pf, "// Copyright 2017-2025 WIT.COM Inc. All rights reserved.") fmt.Fprintln(pf, "// Use of this source code is governed by the GPL 3.0") fmt.Fprintln(pf, "") fmt.Fprintln(pf, line) - found = false + done = true } fmt.Fprintln(pf, line) } |
