system

package
v0.9.7-beta Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSRuntimeInfoGetter

type OSRuntimeInfoGetter struct{}

func (*OSRuntimeInfoGetter) Format

func (g *OSRuntimeInfoGetter) Format(pattern string, args ...interface{}) string

Format formats pattern string using the provided args and the runtime info os = OS (darwin, linux) [OS] = OS (DARWIN, LINUX) [arch] = amd64, arm64 [ARCH] = AMD64, ARM64

func (OSRuntimeInfoGetter) Get

func (OSRuntimeInfoGetter) Get() (info RuntimeInfo)

type RuntimeInfo

type RuntimeInfo struct {
	OS, Arch string
}

func (RuntimeInfo) Format

func (info RuntimeInfo) Format(pattern string, args ...interface{}) string

type RuntimeInfoGetter

type RuntimeInfoGetter interface {
	Get() (info RuntimeInfo)
}

Jump to

Keyboard shortcuts

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