Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-16 15:15:24 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-20 17:22:33 +0300
commit127ca6b9de8d5cca31db5e2345519cf39b0a0e29 (patch)
tree74d34290ed1e9ca3b356094e68ff5ef7504fa8b9 /proto
parent4311879356b4a4fcb704373b33afd41148e34fc7 (diff)
global: Replace deprecated usage of `ioutil.ReadAll()`
With Go 1.16, the ioutil package was deprecated. Replace our usage of `ioutil.ReadAll()` with `io.ReadAll()` to adapt accordingly.
Diffstat (limited to 'proto')
-rw-r--r--proto/go/internal/cmd/protoc-gen-gitaly/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/go/internal/cmd/protoc-gen-gitaly/main.go b/proto/go/internal/cmd/protoc-gen-gitaly/main.go
index 40499a1fa..a364b68ee 100644
--- a/proto/go/internal/cmd/protoc-gen-gitaly/main.go
+++ b/proto/go/internal/cmd/protoc-gen-gitaly/main.go
@@ -73,7 +73,7 @@ const (
)
func main() {
- data, err := ioutil.ReadAll(os.Stdin)
+ data, err := io.ReadAll(os.Stdin)
if err != nil {
log.Fatalf("reading input: %s", err)
}