Dominik<p>Time to get funky:</p><p>final class GoUri implements UriInterface<br>{<br> private FFI $ffi;<br> private RawHandle $handle;</p><p> public function __construct(string $uri)<br> {<br> $this->ffi = FFI::cdef(<br> file_get_contents(__DIR__ . '/../../uri.h'),<br> __DIR__ . '/../../uri.so',<br> );</p><p> $this->handle = new RawHandle($this->ffi->NewUri($uri));<br>...</p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>golang</span></a> <a href="https://phpc.social/tags/whynot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>whynot</span></a> <a href="https://phpc.social/tags/ffi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ffi</span></a></p>