gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/AnyToString.go (about)

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