Author ? I want to know go-lua how to support lua-socket??

オープン
#120 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go, lua
領域
networking

調査の方向性

The payload names no go-lua file or test. The only code shown is a C++ base_open function that registers the lua-socket namespace with luaL_setfuncs. Start by checking whether go-lua exposes a way to register Go functions as Lua modules, and whether any socket support exists. Done would be a maintainer answer on whether lua-socket is supported, with a path for a Go-side equivalent. The thread has gone without comment for about 924 days, so expect no reply.

索引モデルが issue の本文から書いたものです。

説明

I rewrite a project from c++ to golang.
Issue :
it use lua-socket in cpp and i use go-lua in go...

I want to know go-lua is or not support lua-socket??

C++ code:

static int base_open(lua_State *L) {
    if (socket_open()) {
        /* export functions (and leave namespace table on top of stack) */
        lua_newtable(L);
        luaL_setfuncs(L, func, 0);
#ifdef LUASOCKET_DEBUG
        lua_pushstring(L, "_DEBUG");
        lua_pushboolean(L, 1);
        lua_rawset(L, -3);
#endif
        /* make version string available to scripts */
        lua_pushstring(L, "_VERSION");
        lua_pushstring(L, LUASOCKET_VERSION);
        lua_rawset(L, -3);
        return 1;
    } else {
        lua_pushstring(L, "unable to initialize library");
        lua_error(L);
        return 0;
    }
}
主要言語
Go
スター
3.5k
フォーク
217
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/go-lua のほかの issue

Shopify/go-lua の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。