gitlab.com/evatix-go/core@v1.3.55/errcore/Ref.go (about) 1 package errcore 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/constants" 7 ) 8 9 func Ref(reference interface{}) string { 10 if reference == nil { 11 return "" 12 } 13 14 return fmt.Sprintf( 15 constants.ReferenceWrapFormat, 16 reference) 17 18 }