Skip to content

bogdanteleaga/win_netifaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

win_netifaces

Windows ipconfig equivalent written in Go

Lists network interfaces on a system along with other attributes. Uses go-ole to query WMI.

=============

Example usage:

package main

import (
        "fmt"

        "github.com/bogdan/win_netifaces"
)

func main() {
        interfaces, err := win_netifaces.GetAdapters(win_netifaces.Physical)
        if err != nil {
                fmt.Println(err)
        }
        for _, iface := range interfaces {
                fmt.Println("\n")
                win_netifaces.PrettyPrintInterface(iface)
                fmt.Println("\n")
        }
}

About

Windows ipconfig equivalent written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages