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

system

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 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