aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2021-03-30 15:41:54 -0600
committerMatthew Holt <[email protected]>2021-03-30 15:42:04 -0600
commite68dbe9cf8cfd06d9205e4346412c90691f78e60 (patch)
treede92e692e2f3baf4103ee99f0845fc00af30180c /caddy.go
parentbd357bf00507d0f81c8c401b1ffa7ccb1f7c00bf (diff)
downloadcaddy-e68dbe9cf8cfd06d9205e4346412c90691f78e60.tar.gz
caddy-e68dbe9cf8cfd06d9205e4346412c90691f78e60.zip
Change os to ioutil for now
My editor automatically changed ioutil.ReadFile() to os.ReadFile() in accordance with Go 1.16 changes. I didn't notice this until pushing. But we still have to support Go 1.15 for a little while.
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index dcbcb2dd3..0c1ed977a 100644
--- a/caddy.go
+++ b/caddy.go
@@ -669,7 +669,7 @@ func ParseDuration(s string) (time.Duration, error) {
// have its own unique ID.
func InstanceID() (uuid.UUID, error) {
uuidFilePath := filepath.Join(AppDataDir(), "instance.uuid")
- uuidFileBytes, err := os.ReadFile(uuidFilePath)
+ uuidFileBytes, err := ioutil.ReadFile(uuidFilePath)
if os.IsNotExist(err) {
uuid, err := uuid.NewRandom()
if err != nil {