github.com/spirius/terraform@v0.10.0-beta2.0.20170714185654-87b2c0cf8fea/terraform/user_agent.go (about)

     1  package terraform
     2  
     3  import (
     4  	"fmt"
     5  	"runtime"
     6  )
     7  
     8  // The standard Terraform User-Agent format
     9  const UserAgent = "Terraform %s (%s)"
    10  
    11  // Generate a UserAgent string
    12  func UserAgentString() string {
    13  	return fmt.Sprintf(UserAgent, VersionString(), runtime.Version())
    14  }