gitlab.com/evatix-go/core@v1.3.55/simplewrap/ToJsonName.go (about)

     1  package simplewrap
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  // ToJsonName
    10  //
    11  //  Alias for WithDoubleQuoteAny
    12  //
    13  //  " + source + " , also take care of any double if available next.
    14  func ToJsonName(source interface{}) string {
    15  	return fmt.Sprintf(
    16  		constants.SprintValueDoubleQuotationFormat,
    17  		source)
    18  }