github.com/chentex/terraform@v0.11.2-0.20171208003256-252e8145842e/terraform/path.go (about)

     1  package terraform
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  // PathCacheKey returns a cache key for a module path.
     8  func PathCacheKey(path []string) string {
     9  	return strings.Join(path, "|")
    10  }