mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-16 11:29:57 -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.
14 lines
268 B
Go
14 lines
268 B
Go
package addrs
|
|
|
|
// Self is the address of the special object "self" that behaves as an alias
|
|
// for a containing object currently in scope.
|
|
const Self selfT = 0
|
|
|
|
type selfT int
|
|
|
|
func (s selfT) referenceableSigil() {
|
|
}
|
|
|
|
func (s selfT) String() string {
|
|
return "self"
|
|
}
|