13 lines
729 B
Go
13 lines
729 B
Go
package config
|
|
|
|
// The exported clone surface. Deep copying lives in the config package so
|
|
// data/integration code needs neither protobuf cloning nor a storage-specific
|
|
// serializer to hand out a snapshot a caller may safely mutate. Each function
|
|
// returns nil for a nil input.
|
|
func Clone(value *Config) *Config { return cloneConfig(value) }
|
|
func CloneData(value *Data) *Data { return cloneData(value) }
|
|
func CloneAdmin(value *Admin) *Admin { return cloneAdmin(value) }
|
|
func CloneDatabase(value *Database) *Database { return clonePtr(value) }
|
|
func CloneStorage(value *Storage) *Storage { return cloneStorage(value) }
|
|
func CloneEmail(value *Email) *Email { return clonePtr(value) }
|