Create Process Failed

I have tried this simple program to display the ip but the code result to the following error in Windows 10

(runnerw.exe: CreateProcess failed with error 216: This version of %1 is not compatible with the version of Windows you’re running. Check your computer’s system information and then contact the software publisher.
)

/* IP
 */

package main

import (
    "net"
    "os"
    "fmt"
)

func main() {
    if len(os.Args) != 2 {
        fmt.Fprintf(os.Stderr, "Usage: %s ip-addr\n", os.Args[0])
        os.Exit(1)
    }
    name := os.Args[1]

    addr := net.ParseIP(name)
    if addr == nil {
        fmt.Println("Invalid address")
    } else {
        fmt.Println("The address is ", addr.String())
    }
    os.Exit(0)
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.