From 8d8dca23f0c0c6c01fe5ce38b085ca78563b18e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 8 Dec 2022 13:47:24 +0000 Subject: [PATCH] =?UTF-8?q?commit=2053d15d329e43608e24ef297d074c60bf598935?= =?UTF-8?q?b2=20Author:=20J=C3=B6rn=20Friedrich=20Dreyer=20=20Date:=20=20=20Thu=20Dec=208=2014:44:53=202022=20+0100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove deprecated use of ioutil (#5205) Signed-off-by: Jörn Friedrich Dreyer Signed-off-by: Jörn Friedrich Dreyer --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- helpers/adoc-generator.go.tmpl | 3 +-- helpers/configenvextractor.go | 3 +-- helpers/environment-variable-docs-generator.go.tmpl | 3 +-- 11 files changed, 11 insertions(+), 14 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index 5c535fcdfbb..c51e628ac53 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 4cacaf846fd..3e31c114c89 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index 40bf92899da..5c8643eca7f 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index cfa8b752885..9ddd68047a1 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 42fd1972fb2..449c1a004d3 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 36fdda8ccb2..610ead479cd 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index f81c6625d7b..19d3e7b2c70 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index 3955528df20..9de39330fd9 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-12-08T10:36:51Z +date: 2022-12-08T13:46:16Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/helpers/adoc-generator.go.tmpl b/helpers/adoc-generator.go.tmpl index 7ab267dd2c6..0ed23f86e53 100644 --- a/helpers/adoc-generator.go.tmpl +++ b/helpers/adoc-generator.go.tmpl @@ -2,7 +2,6 @@ package main import ( "fmt" - "io/ioutil" "log" "os" "path/filepath" @@ -40,7 +39,7 @@ type templateData struct { func main() { fmt.Println("Generating adoc documentation for environment variables:") -content, err := ioutil.ReadFile("../../docs/templates/ADOC.tmpl") +content, err := os.ReadFile("../../docs/templates/ADOC.tmpl") if err != nil { log.Fatal(err) } diff --git a/helpers/configenvextractor.go b/helpers/configenvextractor.go index b3fcbffd6db..0e9f2e4b7db 100644 --- a/helpers/configenvextractor.go +++ b/helpers/configenvextractor.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "io/ioutil" "log" "os" "os/exec" @@ -41,7 +40,7 @@ func main() { } func GenerateIntermediateCode(templatePath string, intermediateCodePath string, paths []string) { - content, err := ioutil.ReadFile(templatePath) + content, err := os.ReadFile(templatePath) if err != nil { log.Fatal(err) } diff --git a/helpers/environment-variable-docs-generator.go.tmpl b/helpers/environment-variable-docs-generator.go.tmpl index af31091abf9..475a6d760db 100644 --- a/helpers/environment-variable-docs-generator.go.tmpl +++ b/helpers/environment-variable-docs-generator.go.tmpl @@ -3,7 +3,6 @@ package main import ( "fmt" "html" - "io/ioutil" "log" "os" "path/filepath" @@ -24,7 +23,7 @@ type ConfigField struct { func main() { fmt.Println("Generating documentation for environment variables:") -content, err := ioutil.ReadFile("../../docs/templates/CONFIGURATION.tmpl") +content, err := os.ReadFile("../../docs/templates/CONFIGURATION.tmpl") if err != nil { log.Fatal(err) }