debian-forge-composer/internal/blueprint
Brian C. Lane 3ce066a91a Add DeepCopy function to Blueprint struct
The Blueprint struct is complex, deep, and full of references. This
means that any changes to it in memory will persist. Sometimes you need
an actual copy of it, so this adds DeepCopy which uses the json.Marshal
and Unmarshal functions to create a deep copy with no references to the
original.

This is not very efficient, but the alternative is adding Copy functions
to all the member structs and then calling them to build the copy.
2020-02-19 23:44:17 +01:00
..
blueprint.go Add DeepCopy function to Blueprint struct 2020-02-19 23:44:17 +01:00
blueprint_test.go Add DeepCopy function to Blueprint struct 2020-02-19 23:44:17 +01:00
customizations.go blueprint: tag all struct fields for toml 2019-12-04 19:15:33 +01:00