modernc.org/cc@v1.0.1/namespace_string.go (about) 1 // Code generated by "stringer -type Namespace"; DO NOT EDIT. 2 3 package cc // import "modernc.org/cc" 4 5 import "fmt" 6 7 const _Namespace_name = "NSIdentifiersNSTags" 8 9 var _Namespace_index = [...]uint8{0, 13, 19} 10 11 func (i Namespace) String() string { 12 if i < 0 || i >= Namespace(len(_Namespace_index)-1) { 13 return fmt.Sprintf("Namespace(%d)", i) 14 } 15 return _Namespace_name[_Namespace_index[i]:_Namespace_index[i+1]] 16 }