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

     1  package stringutil
     2  
     3  func SafeClonePtr(strIn *string) (cloneOut *string) {
     4  	var strNew string
     5  
     6  	if strIn == nil {
     7  		return &strNew
     8  	}
     9  
    10  	strNew = *strIn
    11  
    12  	return &strNew
    13  }