// EncodeHCL implements the hcl.Encoder interface.
// Stringifies the keys and defers to hcl.Map for encoding.
EncodeHCL implements the hcl.Encoder interface.
Stringifies the keys and defers to hcl.Map for encoding.
// EncodeHCL implements the hcl . Encoder interface . // Stringifies the keys and defers to hcl . Map for encoding .
func (m IMap) EncodeHCL() (string, error) {
	if len(m) == 0 {
		return "{}", nil
	}
	out, err := m.Map()
	if err != nil {
		return "", errors.Wrap(err, "convert to hcl.Map")
	}
	return out.EncodeHCL()
}
func ( m IMap ) EncodeHCL ( ) ( string , error ) { if len ( m ) == 0 { return " " , nil } out , err := m . Map ( ) if err != nil { return " " , errors . Wrap ( err , " " ) } return out . EncodeHCL ( ) }
EncodeHCL implements the hcl.Encoder interface.
EncodeHCL implements the hcl . Encoder interface .