diff options
author | Matthew Holt <[email protected]> | 2021-03-30 15:41:54 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2021-03-30 15:42:04 -0600 |
commit | e68dbe9cf8cfd06d9205e4346412c90691f78e60 (patch) | |
tree | de92e692e2f3baf4103ee99f0845fc00af30180c /caddy.go | |
parent | bd357bf00507d0f81c8c401b1ffa7ccb1f7c00bf (diff) | |
download | caddy-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |