github.com/neohugo/neohugo@v0.123.8/common/paths/pathtype_string.go (about)

     1  // Code generated by "stringer -type=PathType"; DO NOT EDIT.
     2  
     3  package paths
     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[PathTypeFile-0]
    12  	_ = x[PathTypeContentResource-1]
    13  	_ = x[PathTypeContentSingle-2]
    14  	_ = x[PathTypeLeaf-3]
    15  	_ = x[PathTypeBranch-4]
    16  }
    17  
    18  const _PathType_name = "PathTypeFilePathTypeContentResourcePathTypeContentSinglePathTypeLeafPathTypeBranch"
    19  
    20  var _PathType_index = [...]uint8{0, 12, 35, 56, 68, 82}
    21  
    22  func (i PathType) String() string {
    23  	if i < 0 || i >= PathType(len(_PathType_index)-1) {
    24  		return "PathType(" + strconv.FormatInt(int64(i), 10) + ")"
    25  	}
    26  	return _PathType_name[_PathType_index[i]:_PathType_index[i+1]]
    27  }