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

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes 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 interfaces
    23  
    24  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    25  func (in *Ttest) DeepCopyInto(out *Ttest) {
    26  	*out = *in
    27  	if in.I != nil {
    28  		in, out := &in.I, &out.I
    29  		*out = make([]Inner, len(*in))
    30  		for i := range *in {
    31  			if (*in)[i] != nil {
    32  				(*out)[i] = (*in)[i].DeepCopyInner()
    33  			}
    34  		}
    35  	}
    36  	return
    37  }
    38  
    39  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ttest.
    40  func (in *Ttest) DeepCopy() *Ttest {
    41  	if in == nil {
    42  		return nil
    43  	}
    44  	out := new(Ttest)
    45  	in.DeepCopyInto(out)
    46  	return out
    47  }