gitlab.com/evatix-go/core@v1.3.55/coreinterface/enuminf/all-namers.go (about)

     1  package enuminf
     2  
     3  type Int8EnumNamer interface {
     4  	enumNameStinger
     5  	ValueInt8() int8
     6  }
     7  
     8  type Int16EnumNamer interface {
     9  	enumNameStinger
    10  	ValueInt16() int16
    11  }
    12  
    13  type Int32EnumNamer interface {
    14  	enumNameStinger
    15  	ValueInt32() int32
    16  }
    17  
    18  type Namer interface {
    19  	Name() string
    20  }
    21  
    22  type ByteEnumNamer interface {
    23  	enumNameStinger
    24  	ValueByte() byte
    25  }
    26  
    27  // NameValuer / NameValue
    28  //
    29  //   should be a combined string output using name[value]
    30  //
    31  // Sample :
    32  //  - "`EnumName[EnumValInteger]" -> `EnumName[2]`
    33  type NameValuer interface {
    34  	// NameValue
    35  	//
    36  	//   should be a combined string output using name[value]
    37  	//
    38  	// Sample :
    39  	//  - "`EnumName[EnumValInteger]" -> `EnumName[2]`
    40  	NameValue() string
    41  }