// DefaultConfig returns a default config structure.
DefaultConfig returns a default config structure.
// DefaultConfig returns a default config structure .
func DefaultConfig() *Config {
	config := &Config{
		Address:    os.Getenv("TFE_ADDRESS"),
		BasePath:   DefaultBasePath,
		Token:      os.Getenv("TFE_TOKEN"),
		Headers:    make(http.Header),
		HTTPClient: cleanhttp.DefaultPooledClient(),
	}
	if config.Address == "" {
		config.Address = DefaultAddress
	}
	config.Headers.Set("User-Agent", userAgent)
	return config
}
func DefaultConfig ( ) * Config { config := & Config { Address : os . Getenv ( " " ) , BasePath : DefaultBasePath , Token : os . Getenv ( " " ) , Headers : make ( http . Header ) , HTTPClient : cleanhttp . DefaultPooledClient ( ) , } if config . Address == " " { config . Address = DefaultAddress } config . Headers . Set ( " " , userAgent ) return config }
DefaultConfig returns a default config structure.
DefaultConfig returns a default config structure .
// Set the default address if none is given. // Set the default user agent.