mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-19 08:41:29 -04:00
This gives us a convenient way to convert back to a string representation that matches what the user would've written in configuration.
12 lines
254 B
Go
12 lines
254 B
Go
package addrs
|
|
|
|
// CountAttr is the address of an attribute of the "count" object in
|
|
// the interpolation scope, like "count.index".
|
|
type CountAttr struct {
|
|
referenceable
|
|
Name string
|
|
}
|
|
|
|
func (ca CountAttr) String() string {
|
|
return "count." + ca.Name
|
|
}
|