gitlab.com/evatix-go/core@v1.3.55/coreimpl/enumimpl/NameWithValue.go (about)

     1  package enumimpl
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  func NameWithValue(
    10  	value interface{},
    11  ) string {
    12  	return fmt.Sprintf(
    13  		constants.EnumNameValueFormat,
    14  		value,
    15  		value)
    16  }