/netif

Golang library to read, manipulate and write the Debian network interfaces file /etc/network/interfaces

Primary LanguageGoOtherNOASSERTION

Netif

This is a simple Golang package for reading, manipulating and writing the /etc/network/interface file in most Debian based distributions.

This package is heavily based on the Python library Debinterface github.com/dggreenbaum/debinterface.

Installation

go get github.com/xtmono/netif

Basic usage

package main

import (
    "github.com/xtmono/netif"
)