mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
e5dfa17433
This gives us a convenient way to convert back to a string representation that matches what the user would've written in configuration.
15 lines
268 B
Go
15 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"
|
|
}
|