/go-connect

Go library for configuring Linux connection (requires connman & dbus)

Primary LanguageGoMIT LicenseMIT

Welcome to go-connect 👋

🚧 Work in Progress

GitHub code size in bytes GitHub go.mod Go version GitHub contributors License: MIT

Go library for configuring Linux connection (requires connman & dbus)

🚚 Install

go get github.com/tsirysndr/go-connect

🚀 Usage

Import the package into your project.

import "github.com/tsirynsdr/go-connect"

Construct a new connection manager, then use the various services on the client to access different parts of the Connman dbus API. For example:

c := connect.NewConnectionManager()
c.Wifi.Scan()
res, _ := c.Wifi.GetNetworks()
r, _ := json.Marshal(res)
fmt.Println(string(r))

Author

👤 Tsiry Sandratraina

Show your support

Give a ⭐️ if this project helped you!