aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwdvxdr <wdvxdr1123@gmail.com>2021-07-21 11:59:45 +0800
committerIan Lance Taylor <iant@golang.org>2021-07-21 20:29:18 +0000
commit3e48c0381fd1beb78e993e940c3b46ca9898ce6d (patch)
tree5d16982e29d77dc8f7b07d2ec23cb29075bad468
parent48c88f1b1bac1ef4fc81246a7f31933f8f922706 (diff)
downloadgo-3e48c0381fd1beb78e993e940c3b46ca9898ce6d.tar.gz
go-3e48c0381fd1beb78e993e940c3b46ca9898ce6d.zip
reflect: add missing copyright header
Change-Id: I5a2f7203f83be02b03aa7be5fe386e485bf68ca3 Reviewed-on: https://go-review.googlesource.com/c/go/+/336189 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Robert Findley <rfindley@google.com>
-rw-r--r--src/reflect/visiblefields.go4
-rw-r--r--src/reflect/visiblefields_test.go4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/reflect/visiblefields.go b/src/reflect/visiblefields.go
index c068979dcc..1a2b53570b 100644
--- a/src/reflect/visiblefields.go
+++ b/src/reflect/visiblefields.go
@@ -1,3 +1,7 @@
+// Copyright 2021 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.
+
package reflect
// VisibleFields returns all the visible fields in t, which must be a
diff --git a/src/reflect/visiblefields_test.go b/src/reflect/visiblefields_test.go
index 2688b63091..915bbee867 100644
--- a/src/reflect/visiblefields_test.go
+++ b/src/reflect/visiblefields_test.go
@@ -1,3 +1,7 @@
+// Copyright 2021 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.
+
package reflect_test
import (