github.com/galaxyobe/gen@v0.0.0-20220910125335-392fa8f0990f/examples/deepcopy-gen/deepcopy_generated.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Gen Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package deepcopy_gen
    23  
    24  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    25  func (in *Builtin) DeepCopyInto(out *Builtin) {
    26  	*out = *in
    27  	return
    28  }
    29  
    30  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Builtin.
    31  func (in *Builtin) DeepCopy() *Builtin {
    32  	if in == nil {
    33  		return nil
    34  	}
    35  	out := new(Builtin)
    36  	in.DeepCopyInto(out)
    37  	return out
    38  }
    39  
    40  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    41  func (in Map) DeepCopyInto(out *Map) {
    42  	{
    43  		in := &in
    44  		*out = make(Map, len(*in))
    45  		for key, val := range *in {
    46  			(*out)[key] = val
    47  		}
    48  		return
    49  	}
    50  }
    51  
    52  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Map.
    53  func (in Map) DeepCopy() Map {
    54  	if in == nil {
    55  		return nil
    56  	}
    57  	out := new(Map)
    58  	in.DeepCopyInto(out)
    59  	return *out
    60  }
    61  
    62  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    63  func (in Slice) DeepCopyInto(out *Slice) {
    64  	{
    65  		in := &in
    66  		*out = make(Slice, len(*in))
    67  		copy(*out, *in)
    68  		return
    69  	}
    70  }
    71  
    72  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Slice.
    73  func (in Slice) DeepCopy() Slice {
    74  	if in == nil {
    75  		return nil
    76  	}
    77  	out := new(Slice)
    78  	in.DeepCopyInto(out)
    79  	return *out
    80  }
    81  
    82  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    83  func (in *Struct) DeepCopyInto(out *Struct) {
    84  	*out = *in
    85  	return
    86  }
    87  
    88  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Struct.
    89  func (in *Struct) DeepCopy() *Struct {
    90  	if in == nil {
    91  		return nil
    92  	}
    93  	out := new(Struct)
    94  	in.DeepCopyInto(out)
    95  	return out
    96  }