Standard library / runtime/debug

debug.BuildSetting

A key/value pair describing a build configuration setting; available keys vary. Expected stdout: 'GOOS linux\n'.

Formal Syntax & Structure

go syntaxgo
type BuildSetting struct {  Key, Value string}

Working Example

Example Snippetgo
package main
import (  "fmt"  "runtime/debug")
func main() { s := debug.BuildSetting{Key: "GOOS", Value: "linux"}; fmt.Println(s.Key, s.Value) }
Go Reference