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

     1  package converters
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  func JsonBytesFromStringValue(name string) []byte {
    10  	doubleQuoted := fmt.Sprintf(
    11  		constants.SprintDoubleQuoteFormat,
    12  		name)
    13  
    14  	return []byte(doubleQuoted)
    15  }