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)
}
Click to show internal directories.
Click to hide internal directories.