gitlab.com/evatix-go/core@v1.3.55/errcore/ToStringPtr.go (about) 1 package errcore 2 3 func ToStringPtr(err error) *string { 4 if err == nil { 5 emptyString := "" 6 7 return &emptyString 8 } 9 10 errStr := err.Error() 11 12 return &errStr 13 }