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

     1  package converters
     2  
     3  func BytesToString(
     4  	rawBytes []byte,
     5  ) string {
     6  	if len(rawBytes) == 0 {
     7  		return ""
     8  	}
     9  
    10  	return string(rawBytes)
    11  }