11 lines
115 B
Go
11 lines
115 B
Go
package errorsx
|
|
|
|
func String(err error) string {
|
|
out := ""
|
|
if err != nil {
|
|
out = err.Error()
|
|
}
|
|
|
|
return out
|
|
}
|