Skip to content

Commit

Permalink
goimports updates to prepare for Go 1.17 (#3070)
Browse files Browse the repository at this point in the history
Run goimports to make code compatible with Go 1.17.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart authored Nov 24, 2021
1 parent c14239c commit 40fea67
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions bccsp/factory/nopkcs11.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !pkcs11
// +build !pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/factory/nopkcs11_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !pkcs11
// +build !pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/factory/pkcs11.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build pkcs11
// +build pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/factory/pkcs11_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build pkcs11
// +build pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/factory/pkcs11factory.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build pkcs11
// +build pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/factory/pkcs11factory_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build pkcs11
// +build pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions bccsp/pkcs11/pkcs11_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build pkcs11
// +build pkcs11

/*
Expand Down
1 change: 1 addition & 0 deletions core/handlers/library/noplugin_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build noplugin
// +build noplugin

/*
Expand Down
3 changes: 2 additions & 1 deletion core/handlers/library/plugin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !noplugin,cgo
//go:build !noplugin && cgo
// +build !noplugin,cgo

/*
Copyright IBM Corp, SecureKey Technologies Inc. All Rights Reserved.
Expand Down
3 changes: 2 additions & 1 deletion core/handlers/library/plugin_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build noplugin !cgo
//go:build noplugin || !cgo
// +build noplugin !cgo

/*
Copyright IBM Corp All Rights Reserved.
Expand Down
1 change: 1 addition & 0 deletions core/handlers/library/race_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build race
// +build race

/*
Expand Down
1 change: 1 addition & 0 deletions integration/ledger/ledger_generate_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build generate
// +build generate

/*
Expand Down
1 change: 1 addition & 0 deletions internal/fileutil/syncdir.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/*
Expand Down
1 change: 1 addition & 0 deletions internal/peer/node/signals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/*
Expand Down
1 change: 1 addition & 0 deletions internal/peer/node/signals_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

/*
Expand Down
1 change: 1 addition & 0 deletions orderer/common/server/signals.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

/*
Expand Down
1 change: 1 addition & 0 deletions orderer/common/server/signals_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

/*
Expand Down

0 comments on commit 40fea67

Please sign in to comment.