gitlab.com/evatix-go/core@v1.3.55/converters/AnyToValueString.go (about)

     1  package converters
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  func AnyToValueString(anyItem interface{}) string {
    10  	if anyItem == nil {
    11  		return ""
    12  	}
    13  
    14  	return fmt.Sprintf(
    15  		constants.SprintValueFormat,
    16  		anyItem)
    17  }