mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
15 lines
264 B
Go
15 lines
264 B
Go
|
package terraform
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"runtime"
|
||
|
)
|
||
|
|
||
|
// The standard Terraform User-Agent format
|
||
|
const UserAgent = "Terraform %s (%s)"
|
||
|
|
||
|
// Generate a UserAgent string
|
||
|
func UserAgentString() string {
|
||
|
return fmt.Sprintf(UserAgent, VersionString(), runtime.Version())
|
||
|
}
|