cuelang.org/go@v0.13.0/internal/httplog/eventkind_string.go (about)

     1  // Code generated by "stringer -type=EventKind -linecomment"; DO NOT EDIT.
     2  
     3  package httplog
     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[NoEvent-0]
    12  	_ = x[KindClientSendRequest-1]
    13  	_ = x[KindClientRecvResponse-2]
    14  }
    15  
    16  const _EventKind_name = "NoEventhttp client->http client<-"
    17  
    18  var _EventKind_index = [...]uint8{0, 7, 20, 33}
    19  
    20  func (i EventKind) String() string {
    21  	if i < 0 || i >= EventKind(len(_EventKind_index)-1) {
    22  		return "EventKind(" + strconv.FormatInt(int64(i), 10) + ")"
    23  	}
    24  	return _EventKind_name[_EventKind_index[i]:_EventKind_index[i+1]]
    25  }