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

     1  package enuminf
     2  
     3  import "fmt"
     4  
     5  type ByteToEnumStringer interface {
     6  	ToByteEnumString(input byte) string
     7  }
     8  
     9  type IntToEnumStringer interface {
    10  	ToIntEnumString(input int) string
    11  }
    12  
    13  type Int8ToEnumStringer interface {
    14  	ToInt8EnumString(input int8) string
    15  }
    16  
    17  type Int16ToEnumStringer interface {
    18  	ToInt16EnumString(input int16) string
    19  }
    20  
    21  type Int32ToEnumStringer interface {
    22  	ToInt32EnumString(input int32) string
    23  }
    24  
    25  type enumNameStinger interface {
    26  	Namer
    27  	fmt.Stringer
    28  }
    29  
    30  // ToNumberStringer
    31  //
    32  //  It returns string number value.
    33  //
    34  // Examples:
    35  //  - ToNumberString() -> "1"  if the value is 1
    36  //  - ToNumberString() -> "10" if the value is 10
    37  type ToNumberStringer interface {
    38  	// ToNumberString
    39  	//
    40  	//  It returns string number value.
    41  	//
    42  	// Examples:
    43  	//  - ToNumberString() -> "1"  if the value is 1
    44  	//  - ToNumberString() -> "10" if the value is 10
    45  	ToNumberString() string
    46  }