]> Cypherpunks.ru repositories - gostls13.git/blobdiff - misc/ios/detect.go
[dev.cmdgo] all: merge master (912f075) into dev.cmdgo
[gostls13.git] / misc / ios / detect.go
index d32bcc3202a443a26a7b2a394342d18e5feeb650..1cb8ae5ff711cc1548a825ba0f5706a6fedd26c0 100644 (file)
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build ignore
 // +build ignore
 
 // detect attempts to autodetect the correct
@@ -16,7 +17,6 @@ import (
        "bytes"
        "crypto/x509"
        "fmt"
-       "io/ioutil"
        "os"
        "os/exec"
        "strings"
@@ -38,7 +38,7 @@ func main() {
        fmt.Println("# will be overwritten when running Go programs.")
        for _, mp := range mps {
                fmt.Println()
-               f, err := ioutil.TempFile("", "go_ios_detect_")
+               f, err := os.CreateTemp("", "go_ios_detect_")
                check(err)
                fname := f.Name()
                defer os.Remove(fname)