diff options
Diffstat (limited to 'util')
| -rw-r--r-- | util/codegen/codegen.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/codegen/codegen.go b/util/codegen/codegen.go index 61ec85de8..7fc575fd4 100644 --- a/util/codegen/codegen.go +++ b/util/codegen/codegen.go @@ -15,7 +15,6 @@ import ( "os" "reflect" "strings" - "time" "golang.org/x/tools/go/packages" "golang.org/x/tools/imports" @@ -54,7 +53,7 @@ func HasNoClone(structTag string) bool { return false } -const header = `// Copyright (c) %d Tailscale Inc & AUTHORS All rights reserved. +const header = `// Copyright (c) Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -105,7 +104,7 @@ func (it *ImportTracker) Write(w io.Writer) { } func writeHeader(w io.Writer, tool, pkg string) { - fmt.Fprintf(w, header, time.Now().Year(), tool, pkg) + fmt.Fprintf(w, header, tool, pkg) } // WritePackageFile adds a file with the provided imports and contents to package. |
