Post
GoLang
Posted on 24th April 2024|3748 views
How can I convert an error to a string?
Posted on 24th April 2024
The error type contains an interface in Go
type error interface {
Error() string
}
Thus, for an error err, you can call
err.Error()
STILL GOT QUERIES?