Exemple #1
0
func strerror(errno C.alpm_errno_t) error {
	return errors.New(C.GoString(C.alpm_strerror(errno)))
}
Exemple #2
0
// The string representation of an error is given by C function
// alpm_strerror().
func (er Error) Error() string {
	return C.GoString(C.alpm_strerror(C.alpm_errno_t(er)))
}