...

Source file src/github.com/mdlayher/arp/string.go

Documentation: github.com/mdlayher/arp

     1  // Code generated by "stringer -output=string.go -type=Operation"; DO NOT EDIT.
     2  
     3  package arp
     4  
     5  import "strconv"
     6  
     7  const _Operation_name = "OperationRequestOperationReply"
     8  
     9  var _Operation_index = [...]uint8{0, 16, 30}
    10  
    11  func (i Operation) String() string {
    12  	i -= 1
    13  	if i >= Operation(len(_Operation_index)-1) {
    14  		return "Operation(" + strconv.FormatInt(int64(i+1), 10) + ")"
    15  	}
    16  	return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
    17  }
    18  

View as plain text