From afd42cbeb4def7109e4036ded07d6f631822ea5f Mon Sep 17 00:00:00 2001 From: Florin Patan Date: Sun, 30 Jul 2017 09:59:08 +0100 Subject: [PATCH] Update the generated files header This updates the generated files header to be compliant with the Go standard for machine generated files: https://golang.org/issues/13560 It also tags the file as Windows only build so that static analysis tools such as Gogland can better infer the context. Signed-off-by: Florin Patan --- mksyscall_windows.go | 4 +++- zhcsshim.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mksyscall_windows.go b/mksyscall_windows.go index 82393ca367..6ab0592369 100644 --- a/mksyscall_windows.go +++ b/mksyscall_windows.go @@ -843,7 +843,9 @@ func main() { // TODO: use println instead to print in the following template const srcTemplate = ` -{{define "main"}}// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT +{{define "main"}}// Code generated by mksyscall_windows.go; DO NOT EDIT. + +// +build windows package {{packagename}} diff --git a/zhcsshim.go b/zhcsshim.go index 5d1a851ae8..79bcbae7a6 100644 --- a/zhcsshim.go +++ b/zhcsshim.go @@ -1,4 +1,6 @@ -// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT +// Code generated by mksyscall_windows.go; DO NOT EDIT. + +// +build windows package hcsshim