github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/pkg/genyaml/testdata/multiline_comments/example_config.go (about)

     1  /*
     2  Copyright 2019 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package multiline_comments
    18  
    19  type Multiline struct {
    20  	// StringField1 comment
    21  	// second line
    22  	// third line
    23  	StringField1 string `json:"string1"`
    24  
    25  	/* StringField2 comment
    26  	second line
    27  	third line
    28  	*/
    29  	StringField2 string `json:"string2"`
    30  
    31  	/* StringField3 comment
    32  	second line
    33  	third line
    34  	*/
    35  	StringField3 string `json:"string3"`
    36  
    37  	//
    38  	//
    39  	// Paragraph line
    40  	//
    41  	//
    42  	StringField4 string `json:"string4"`
    43  
    44  	/*
    45  
    46  		Paragraph block
    47  
    48  	*/
    49  	StringField5 string `json:"string5"`
    50  
    51  	/*
    52  		Tab	Tab		TabTab
    53  	*/
    54  	StringField6 string `json:"string6"`
    55  }