/go-cbsd

CBSD golang library

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

go-cbsd

Build

go-cbsd is a Go client library for managing CBSD.

Installation

go get -u github.com/yarlson/go-cbsd

Example

package main

import (
	"fmt"
	"github.com/yarlson/go-cbsd"
)

func main() {
	c := cbsd.NewCBSD()
	bHyves, err := c.BHyve.List()
	if err != nil {
		panic(err)
	}

	for _, bHyve := range bHyves {
		fmt.Println(bHyve.JName)
	}
}

The project is under heavy active development, feel free to create a fork and submit a pull request.