github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/terraform/graphtype_string.go (about)

     1  // Code generated by "stringer -type=GraphType context_graph_type.go"; DO NOT EDIT.
     2  
     3  package terraform
     4  
     5  import "fmt"
     6  
     7  const _GraphType_name = "GraphTypeInvalidGraphTypeLegacyGraphTypeRefreshGraphTypePlanGraphTypePlanDestroyGraphTypeApplyGraphTypeInputGraphTypeValidate"
     8  
     9  var _GraphType_index = [...]uint8{0, 16, 31, 47, 60, 80, 94, 108, 125}
    10  
    11  func (i GraphType) String() string {
    12  	if i >= GraphType(len(_GraphType_index)-1) {
    13  		return fmt.Sprintf("GraphType(%d)", i)
    14  	}
    15  	return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]]
    16  }