print

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package print implements utilities to pretty-print Raspberry Pi revision code info structures.

TODO Rethink usefulness and/or consider removal.

Index

Constants

This section is empty.

Variables

DefaultOrder of fields in output.

Functions

This section is empty.

Types

type Fields

type Fields = []bits.Field

Fields alias bits.Field slice.

func DefaultLegacyOrder

func DefaultLegacyOrder() Fields

DefaultLegacyOrder of fields in output of legacy revision code info.

type LegacyPrinter

type LegacyPrinter struct {
	// contains filtered or unexported fields
}

LegacyPrinter pretty-prints info of an old-style revision code.

func NewLegacyPrinter

func NewLegacyPrinter() *LegacyPrinter

NewLegacyPrinter instance.

func (LegacyPrinter) Print

func (p LegacyPrinter) Print(w io.Writer, i legacy.Info) (n int, e error)

Print info divined from an old-style revision code.

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

Printer of Raspberry Pi revision info.

func NewPrinter

func NewPrinter() *Printer

NewPrinter instance.

func (Printer) Print

func (p Printer) Print(w io.Writer, i pirev.Info) (n int, e error)

Print info extracted from a new-style revision code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL