• Tim Hockin's avatar
    Add support for manually defined DeepCopy methods · 57c31969
    Tim Hockin authored
    In bringing back Clayton's PR piece-by-piece this was almost as easy to
    implement as his version, and is much more like what I think we should be
    doing.
    
    Specifically, any time which defines a .DeepCopy() method will have that method
    called preferentially.  Otherwise we generate our own functions for
    deep-copying.  This affected exactly one type - resource.Quantity.  In applying
    this heuristic, several places in the generated code were simplified.
    
    To achieve this I had to convert types.Type.Methods from a slice to a map,
    which seems correct anyway (to do by-name lookups).
    57c31969
Name
Last commit
Last update
..
amount.go Loading commit data...
amount_test.go Loading commit data...
generated.pb.go Loading commit data...
generated.proto Loading commit data...
math.go Loading commit data...
math_test.go Loading commit data...
quantity.go Loading commit data...
quantity_example_test.go Loading commit data...
quantity_proto.go Loading commit data...
quantity_test.go Loading commit data...
scale_int.go Loading commit data...
scale_int_test.go Loading commit data...
suffix.go Loading commit data...