@marcel91200 / caddy Mirror · read-only / commits / e68dbe9c
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

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.

Matthew Holt committed Mar 30, 2021 at 15:41 UTC e68dbe9cf8cfd06d9205e4346412c90691f78e60
1 file changed +1 -1
caddy.go
+1 -1
@@ -669,7 +669,7 @@ func ParseDuration(s string) (time.Duration, error) {
669 // have its own unique ID.
670 func InstanceID() (uuid.UUID, error) {
671 uuidFilePath := filepath.Join(AppDataDir(), "instance.uuid")
672 - uuidFileBytes, err := os.ReadFile(uuidFilePath)
672 + uuidFileBytes, err := ioutil.ReadFile(uuidFilePath)
673 if os.IsNotExist(err) {
674 uuid, err := uuid.NewRandom()
675 if err != nil {