/go-pirev

Parse and extract hardware information from a Raspberry Pi revision code as structured data or raw bit values.

Primary LanguageGoMozilla Public License 2.0MPL-2.0

go-pirev

godoc-badge release-badge license-badge goreport-badge

Raspberry Pi revision code parser in Go

A Go library for parsing and extracting hardware information from a Raspberry Pi revision code as structured data or raw bit values.

Also includes a basic CLI tool that uses this library to display the details of a Raspberry Pi revision code.

Installation

Library

In the directory of your module run:

go get github.com/antichris/go-pirev@latest

CLI tool

go install github.com/antichris/go-pirev/cmd/pirev@latest

License

The source code of this project is released under Mozilla Public License Version 2.0. See LICENSE.