<p dir="auto">Here is the code I have tested on windows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main

import (
    &quot;net&quot;
    &quot;fmt&quot;
)
func main() {
    inets, _ := net.Interfaces()
    for _, i := range inets {
        if mac := i.HardwareAddr.String(); mac != &quot;&quot; {
            fmt.Println(&quot;MAC:&quot;,mac)
            fmt.Println(&quot;Name&quot;,i.Name)
            addrs, _ := i.Addrs()
            for _, addr := range addrs {
                if addr := addr.String(); addr != &quot;&quot; {
                    fmt.Println(&quot;Addr:&quot;,addr)
                }
            }
        }
    }
}"><pre class="notranslate"><code class="notranslate">package main

import (
    "net"
    "fmt"
)
func main() {
    inets, _ := net.Interfaces()
    for _, i := range inets {
        if mac := i.HardwareAddr.String(); mac != "" {
            fmt.Println("MAC:",mac)
            fmt.Println("Name",i.Name)
            addrs, _ := i.Addrs()
            for _, addr := range addrs {
                if addr := addr.String(); addr != "" {
                    fmt.Println("Addr:",addr)
                }
            }
        }
    }
}
</code></pre></div>
<p dir="auto">Run this code on different version:</p>
<p dir="auto">On 1.4.3 get the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MAC: 08:00:27:0a:af:0c
Name {558CA760-9D61-47CC-AF7D-4E8635DDD283}
Addr: 10.0.2.15"><pre class="notranslate"><code class="notranslate">MAC: 08:00:27:0a:af:0c
Name {558CA760-9D61-47CC-AF7D-4E8635DDD283}
Addr: 10.0.2.15
</code></pre></div>
<p dir="auto">On 1.5.1 get the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MAC: 08:00:27:0a:af:0c:00:00
Name Local Area Connection
Addr: 10.0.2.15/16"><pre class="notranslate"><code class="notranslate">MAC: 08:00:27:0a:af:0c:00:00
Name Local Area Connection
Addr: 10.0.2.15/16
</code></pre></div>
<p dir="auto">On 1.5.2 get the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MAC: 08:00:27:0a:af:0c:00:00
Name Local Area Connection
Addr: 10.0.2.15/16
MAC: 00:00:00:00:00:00:00:00
Name MS TCP Loopback interface
Addr: 127.0.0.1/1"><pre class="notranslate"><code class="notranslate">MAC: 08:00:27:0a:af:0c:00:00
Name Local Area Connection
Addr: 10.0.2.15/16
MAC: 00:00:00:00:00:00:00:00
Name MS TCP Loopback interface
Addr: 127.0.0.1/1
</code></pre></div>
<p dir="auto">The old version MAC use the standard <a href="https://en.wikipedia.org/wiki/IEEE_802" rel="nofollow">IEEE 802</a> format MAC-48. but the new version use the EUI-64.</p>
<p dir="auto">If my program is relied on the MAC as the uuid. then upgrade Go will cause big problem. Is there any config to get MAC-48 not EUI-64?</p>
<p dir="auto">I'd written a program in go 1.4 to retrieve mac addresses on windows and used to get the correct mac address.<br>
With 1.5.1 however, I'm seeing a :00:00 appended to all the mac addresses on Windows (specifically Windows 7 Professional).</p>
<p dir="auto">Is there a reason for this (or is it simply an error on my side)?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ifs, _ := net.Interfaces()
 for _, v := range ifs {
     h := v.HardwareAddr.String()
     if len(h) == 0 {
         continue
     }
     si.Macs = append(si.Macs, h)
 }"><pre class="notranslate"><code class="notranslate"> ifs, _ := net.Interfaces()
 for _, v := range ifs {
     h := v.HardwareAddr.String()
     if len(h) == 0 {
         continue
     }
     si.Macs = append(si.Macs, h)
 }
</code></pre></div>
<p dir="auto">Bjorn Graf in <a href="https://groups.google.com/forum/#!topic/golang-nuts/M-FqXQsOe_Q" rel="nofollow">this</a> thread reports: "on my Windows 10 Go 1.5,x (amd64 and 386) seems to find only the loopback pseudo-Interface with an all-00 mac while go1.4.2 lists the real interface."</p>