// DeepCopy performs a deep copy of the configuration. This makes it safe
// to modify any of the structures that are part of the resource config without
// affecting the original configuration.
DeepCopy performs a deep copy of the configuration. This makes it safe
to modify any of the structures that are part of the resource config without
affecting the original configuration.
// DeepCopy performs a deep copy of the configuration . This makes it safe // to modify any of the structures that are part of the resource config without // affecting the original configuration .
func (c *ResourceConfig) DeepCopy() *ResourceConfig {
	if c == nil {
		return nil
	}
	copy, err := copystructure.Config{Lock: true}.Copy(c)
	if err != nil {
		panic(err)
	}
	result := copy.(*ResourceConfig)
	return result
}
func ( c * ResourceConfig ) DeepCopy ( ) * ResourceConfig { if c == nil { return nil } copy , err := copystructure . Config { Lock : true } . Copy ( c ) if err != nil { panic ( err ) } result := copy . ( * ResourceConfig ) return result }
DeepCopy performs a deep copy of the configuration.
DeepCopy performs a deep copy of the configuration .
// DeepCopying a nil should return a nil to avoid panics // Copy, this will copy all the exported attributes // Force the type