func (sa *SockaddrIn6) Name() (name string, err error) { b := make([]byte, 256) r := C.uv_ip6_name(&sa.sa, (*C.char)(unsafe.Pointer(&b[0])), C.size_t(len(b))) if r != 0 { var error C.uv_err_t error.code = C.uv_err_code(r) return "", errors.New(C.GoString(C.uv_strerror(error))) } return string(b), nil }
func (err *Error) Name() string { var error C.uv_err_t error.code = C.uv_err_code(err.e) return C.GoString(C.uv_err_name(error)) }