From 244127e4b40f3170317ebdb93fa8a92143a54c18 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 Sep 2022 10:34:58 +0200 Subject: [PATCH] all: move //go:build lines below copyright notice Change-Id: Ib6196f01b1927ea8a84c095f445320f03a514dd1 Reviewed-on: https://go-review.googlesource.com/c/go/+/429796 Run-TryBot: Tobias Klauser Auto-Submit: Tobias Klauser Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- src/cmd/link/internal/ld/elf_test.go | 6 +++--- src/crypto/sha1/issue15617_test.go | 4 ++-- src/syscall/flock.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cmd/link/internal/ld/elf_test.go b/src/cmd/link/internal/ld/elf_test.go index 15eaa1388b..7d59249f3a 100644 --- a/src/cmd/link/internal/ld/elf_test.go +++ b/src/cmd/link/internal/ld/elf_test.go @@ -1,10 +1,10 @@ -//go:build cgo -// +build cgo - // Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build cgo +// +build cgo + package ld import ( diff --git a/src/crypto/sha1/issue15617_test.go b/src/crypto/sha1/issue15617_test.go index df4e28f64e..116c78ff74 100644 --- a/src/crypto/sha1/issue15617_test.go +++ b/src/crypto/sha1/issue15617_test.go @@ -1,9 +1,9 @@ -//go:build amd64 && (linux || darwin) - // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build amd64 && (linux || darwin) + package sha1_test import ( diff --git a/src/syscall/flock.go b/src/syscall/flock.go index 8cb8f16153..820f526fe0 100644 --- a/src/syscall/flock.go +++ b/src/syscall/flock.go @@ -1,9 +1,9 @@ -//go:build linux || freebsd || openbsd || netbsd || dragonfly - // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux || freebsd || openbsd || netbsd || dragonfly + package syscall import "unsafe" -- 2.50.0