summaryrefslogtreecommitdiff
path: root/caddy.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-03-30 15:41:54 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-03-30 15:42:04 -0600
commite68dbe9cf8cfd06d9205e4346412c90691f78e60 (patch)
treede92e692e2f3baf4103ee99f0845fc00af30180c /caddy.go
parentbd357bf00507d0f81c8c401b1ffa7ccb1f7c00bf (diff)
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 dcbcb2d..0c1ed97 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 {