FFI-Platypus-Lang-Go

 view release on metacpan or  search on metacpan

lib/FFI/Platypus/Type/GoString.pm  view on Meta::CPAN

=head1 SYNOPSIS

 use FFI::Platypus 1.00;
 
 my $ffi = FFI::Platypus->new( api => 1 );
 $ffi->load_custom_type('::GoString' => 'gostring');
 $ffi->function( some_go_function => [ 'gostring' ] )->call("hello there!");

=head1 DESCRIPTION

This Platypus custom types lets you pass strings transparently into Go code
without having to create/pass L<FFI::Go::String> types manually.  Under the
covers L<FFI::Go::String> is used.

The Go language plugin L<FFI::Platypus::Lang::Go> will load this custom type
automatically, so probably best to just do this:

 use FFI::Platypus 1.00;
 
 my $ffi = FFI::Platypus->new( api => 1, lang => 'Go' );
 $ffi->function( some_go_function => [ 'gostring' ] )->call("hello there!");



( run in 0.596 second using v1.01-cache-2.11-cpan-0a6323c29d9 )