Name

SPVM::Go::Resource::UV - Data Structure for Go::UV class and libuv

Description

Go::Resource::UV class in SPVM is a resource class for data structure for Go::UV class and libuv.

Usage

MyClass.build:

my $config = SPVM::Builder::Config->new_c99;

$config->use_resource('Go::Resource::UV');

$config;

MyClass.c:

#include "spvm_native.h"
#include "spvm_go_uv.h"

int32_t SPVM__MyClass__test(SPVM_ENV* env, SPVM_VALUE* stack) {
  
  // Use functions in foo.h
  
  return 0;
}

Copyright & License

Copyright (c) 2026 Yuki Kimoto

MIT License