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

Aperta
#120 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go, lua
Ambito
networking

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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;
    }
}
Lingua principale
Go
Stelle
3.5k
Fork
217
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/go-lua

Tutte le issue di Shopify/go-lua

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.