예제 #1
0
파일: alpm.go 프로젝트: Zirak/pacman-fs
func strerror(errno C.alpm_errno_t) error {
	return errors.New(C.GoString(C.alpm_strerror(errno)))
}
예제 #2
0
파일: error.go 프로젝트: Thibauth/go-alpm
// 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)))
}