systemtriplet

package
v0.0.0-...-cf07509 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const SYSTEM_TRIPLET_REGEXP = "" +
	`(?P<cpu>.*?)-` +
	`(?P<company>.*?)-` +
	`(?P<system>((?P<kernel>.*?)-)?(?P<os>.*))`

Variables

View Source
var ErrCantParseSystemTriplet = errors.New("Can't parse")
View Source
var SYSTEM_TRIPLET_REGEXP_COMPILED = regexp.MustCompile(
	SYSTEM_TRIPLET_REGEXP,
)

Functions

This section is empty.

Types

type SystemTriplet

type SystemTriplet struct {
	CPU     string
	Company string
	Kernel  string
	OS      string
}

func NewFromString

func NewFromString(value string) (*SystemTriplet, error)

func (*SystemTriplet) String

func (self *SystemTriplet) String() string

Jump to

Keyboard shortcuts

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