Skip to content

Commit 3a9e1dc

Browse files
committed
all: gofmt all
Change-Id: I1d42c8d784440a0b7e40b4f0b8da54be0fb338a6 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/370054 Trust: Damien Neil <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Joseph Tsai <[email protected]> Reviewed-by: Florian Zenker <[email protected]>
1 parent 26e8bcb commit 3a9e1dc

20 files changed

+20
-0
lines changed

integration_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build ignore
56
// +build ignore
67

78
package main

internal/errors/is_go112.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !go1.13
56
// +build !go1.13
67

78
package errors

internal/errors/is_go113.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.13
56
// +build go1.13
67

78
package errors

internal/flags/proto_legacy_disable.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !protolegacy
56
// +build !protolegacy
67

78
package flags

internal/flags/proto_legacy_enable.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build protolegacy
56
// +build protolegacy
67

78
package flags

internal/impl/codec_map_go111.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !go1.12
56
// +build !go1.12
67

78
package impl

internal/impl/codec_map_go112.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.12
56
// +build go1.12
67

78
package impl

internal/impl/codec_reflect.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build purego || appengine
56
// +build purego appengine
67

78
package impl

internal/impl/codec_unsafe.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !purego && !appengine
56
// +build !purego,!appengine
67

78
package impl

internal/impl/pointer_reflect.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build purego || appengine
56
// +build purego appengine
67

78
package impl

internal/impl/pointer_unsafe.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !purego && !appengine
56
// +build !purego,!appengine
67

78
package impl

internal/strs/strings_pure.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build purego || appengine
56
// +build purego appengine
67

78
package strs

internal/strs/strings_unsafe.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !purego && !appengine
56
// +build !purego,!appengine
67

78
package strs

internal/testprotos/nullable/methods_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// only test compatibility with the Marshal/Unmarshal functionality with
77
// pure protobuf reflection since there is no support for nullable fields
88
// in the table-driven implementation.
9+
//go:build protoreflect
910
// +build protoreflect
1011

1112
package nullable

internal/weakdeps/weakdeps.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build weak_dependency
56
// +build weak_dependency
67

78
package weakdeps

proto/methods_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// The protoreflect tag disables fast-path methods, including legacy ones.
6+
//go:build !protoreflect
67
// +build !protoreflect
78

89
package proto_test

proto/proto_methods.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// The protoreflect build tag disables use of fast-path methods.
6+
//go:build !protoreflect
67
// +build !protoreflect
78

89
package proto

proto/proto_reflect.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// The protoreflect build tag disables use of fast-path methods.
6+
//go:build protoreflect
67
// +build protoreflect
78

89
package proto

reflect/protoreflect/value_pure.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build purego || appengine
56
// +build purego appengine
67

78
package protoreflect

reflect/protoreflect/value_unsafe.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !purego && !appengine
56
// +build !purego,!appengine
67

78
package protoreflect

0 commit comments

Comments
 (0)