Help us shape the future of Go! Take the 2026 Go Developer Survey

product

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Family       string `json:"family"`
	Name         string `json:"name"`
	Vendor       string `json:"vendor"`
	SerialNumber string `json:"serial_number"`
	UUID         string `json:"uuid"`
	SKU          string `json:"sku"`
	Version      string `json:"version"`
}

Info defines product information

func New

func New(args ...any) (*Info, error)

New returns a pointer to a Info struct containing information about the host's product

func (*Info) JSONString

func (info *Info) JSONString(indent bool) string

JSONString returns a string with the product information formatted as JSON under a top-level "product:" key

func (*Info) String

func (i *Info) String() string

func (*Info) YAMLString

func (info *Info) YAMLString() string

YAMLString returns a string with the product information formatted as YAML under a top-level "dmi:" key

Jump to

Keyboard shortcuts

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