github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/directory/deploystate_string.go (about)

     1  // Code generated by "stringer -type=DeployState deploy_state.go"; DO NOT EDIT
     2  
     3  package directory
     4  
     5  import "fmt"
     6  
     7  const _DeployState_name = "DeployStateInvalidDeployStateNewDeployStateFailDeployStateSuccess"
     8  
     9  var _DeployState_index = [...]uint8{0, 18, 32, 47, 65}
    10  
    11  func (i DeployState) String() string {
    12  	if i >= DeployState(len(_DeployState_index)-1) {
    13  		return fmt.Sprintf("DeployState(%d)", i)
    14  	}
    15  	return _DeployState_name[_DeployState_index[i]:_DeployState_index[i+1]]
    16  }