Пример #1
0
func (d *Dtrace) err() string {
	return C.GoString(C.dtrace_errmsg(d.handle, C.dtrace_errno(d.handle)))
}
Пример #2
0
func dtraceErr(err C.int) error {
	return errors.New(C.GoString(C.dtrace_errmsg(nil, err)))
}