commit 53d15d329e
Author: Jörn Friedrich Dreyer <jfd@owncloud.com> Date: Thu Dec 8 14:44:53 2022 +0100 remove deprecated use of ioutil (#5205) Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
9d455b57ec
commit
8d8dca23f0
11 files changed
+11
-14
No files matched your search
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user