// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package godebug parses the GODEBUG environment variable.
package godebug import // Get returns the value for the provided GODEBUG key. func ( string) string { return get(os.Getenv("GODEBUG"), ) } // get returns the value part of key=value in s (a GODEBUG value). func (, string) string { for := 0; < len()-len()-1; ++ { if > 0 && [-1] != ',' { continue } := [+len():] if [0] != '=' || [:+len()] != { continue } := [1:] for , := range { if == ',' { return [:] } } return } return "" }