github.com/hedzr/evendeep@v0.4.8/flags/cms/copymergestrategy_string.go (about)

     1  // Code generated by "stringer -type=CopyMergeStrategy -linecomment"; DO NOT EDIT.
     2  
     3  package cms
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[Default-0]
    12  	_ = x[Ignore-1]
    13  	_ = x[Must-2]
    14  	_ = x[ClearIfEq-13]
    15  	_ = x[KeepIfNotEq-14]
    16  	_ = x[ClearIfInvalid-15]
    17  	_ = x[ClearIfMissed-16]
    18  	_ = x[NoOmit-22]
    19  	_ = x[OmitIfEmpty-23]
    20  	_ = x[OmitIfNil-24]
    21  	_ = x[OmitIfZero-25]
    22  	_ = x[NoOmitTarget-32]
    23  	_ = x[OmitIfTargetEmpty-33]
    24  	_ = x[OmitIfTargetNil-34]
    25  	_ = x[OmitIfTargetZero-35]
    26  	_ = x[SliceCopy-52]
    27  	_ = x[SliceCopyAppend-53]
    28  	_ = x[SliceMerge-54]
    29  	_ = x[MapCopy-72]
    30  	_ = x[MapMerge-73]
    31  	_ = x[Flat-83]
    32  	_ = x[UnexportedToo-93]
    33  	_ = x[ByOrdinal-94]
    34  	_ = x[ByName-95]
    35  	_ = x[MaxStrategy-96]
    36  	_ = x[ftf100-125]
    37  	_ = x[ftf110-136]
    38  	_ = x[ftf120-147]
    39  	_ = x[ftf130-158]
    40  	_ = x[ftf140-169]
    41  	_ = x[ftf150-180]
    42  	_ = x[ftf160-191]
    43  	_ = x[ftf170-202]
    44  	_ = x[InvalidStrategy - -1]
    45  }
    46  
    47  const _CopyMergeStrategy_name = "InvalidStrategystd-mustcleareqkeepneqclearinvalidclearmissednoomitomitemptyomitnilomitzeronoomittgtomitemptytgtomitniltgtomitzerotgtslicecopyslicecopyappendslicemergemapcopymapmergeflatprivatebyordinalbynameMaxStrategyftf100ftf110ftf120ftf130ftf140ftf150ftf160ftf170"
    48  
    49  var _CopyMergeStrategy_map = map[CopyMergeStrategy]string{
    50  	-1:  _CopyMergeStrategy_name[0:15],
    51  	0:   _CopyMergeStrategy_name[15:18],
    52  	1:   _CopyMergeStrategy_name[18:19],
    53  	2:   _CopyMergeStrategy_name[19:23],
    54  	13:  _CopyMergeStrategy_name[23:30],
    55  	14:  _CopyMergeStrategy_name[30:37],
    56  	15:  _CopyMergeStrategy_name[37:49],
    57  	16:  _CopyMergeStrategy_name[49:60],
    58  	22:  _CopyMergeStrategy_name[60:66],
    59  	23:  _CopyMergeStrategy_name[66:75],
    60  	24:  _CopyMergeStrategy_name[75:82],
    61  	25:  _CopyMergeStrategy_name[82:90],
    62  	32:  _CopyMergeStrategy_name[90:99],
    63  	33:  _CopyMergeStrategy_name[99:111],
    64  	34:  _CopyMergeStrategy_name[111:121],
    65  	35:  _CopyMergeStrategy_name[121:132],
    66  	52:  _CopyMergeStrategy_name[132:141],
    67  	53:  _CopyMergeStrategy_name[141:156],
    68  	54:  _CopyMergeStrategy_name[156:166],
    69  	72:  _CopyMergeStrategy_name[166:173],
    70  	73:  _CopyMergeStrategy_name[173:181],
    71  	83:  _CopyMergeStrategy_name[181:185],
    72  	93:  _CopyMergeStrategy_name[185:192],
    73  	94:  _CopyMergeStrategy_name[192:201],
    74  	95:  _CopyMergeStrategy_name[201:207],
    75  	96:  _CopyMergeStrategy_name[207:218],
    76  	125: _CopyMergeStrategy_name[218:224],
    77  	136: _CopyMergeStrategy_name[224:230],
    78  	147: _CopyMergeStrategy_name[230:236],
    79  	158: _CopyMergeStrategy_name[236:242],
    80  	169: _CopyMergeStrategy_name[242:248],
    81  	180: _CopyMergeStrategy_name[248:254],
    82  	191: _CopyMergeStrategy_name[254:260],
    83  	202: _CopyMergeStrategy_name[260:266],
    84  }
    85  
    86  func (i CopyMergeStrategy) String() string {
    87  	if str, ok := _CopyMergeStrategy_map[i]; ok {
    88  		return str
    89  	}
    90  	return "CopyMergeStrategy(" + strconv.FormatInt(int64(i), 10) + ")"
    91  }