Giter VIP home page Giter VIP logo

simple-luago's Introduction

simple-luago

simple-luago is a simple wrapper for lua(5.3.0+) in go(1.4+) using swig(3.0.5+) and cgo.

supported platforms

  • macosx
  • linux(centos)
  • windows(need go1.5)

install

prepare

  • go1.4.0+ & swig3.0.5
  • go1.5.0+ & swig3.0.6+
  • git
  • gcc
  • lua5.3.0+

setup

Macosx:

export GOPATH=`pwd`
go get github.com/ximenpo/simple-lua
export LUA_SRC=/path/to/lua/src
go generate github.com/ximenpo/simple-lua
go install github.com/ximenpo/simple-lua/lua

test & examples

check the example diretory.

go run src/github.com/ximenpo/simple-luago/example/lua_???.go

simple-luago

simple-luago项目专注于lua在go语言中的应用,使用swig和cgo将lua虚拟机嵌入到go语言中,目前使用的相关版本为:

  • lua 5.3.0+
  • go 1.4.0+
  • swig 3.0.5+

支持的平台

  • macosx
  • linux(centos)
  • windows(need go1.5)

安装

准备

  • go1.4.0+ & swig3.0.5
  • go1.5.0+ & swig3.0.6+
  • git
  • gcc
  • lua5.3.0+

安装

Macosx:

export GOPATH=`pwd`
go get github.com/ximenpo/simple-lua
export LUA_SRC=/path/to/lua/src
go generate github.com/ximenpo/simple-lua
go install github.com/ximenpo/simple-lua/lua

测试&例子

请查看example目录下的例子,并用以下命令运行(替换掉???的内容)。

go run src/github.com/ximenpo/simple-luago/example/lua_???.go

simple-luago's People

Contributors

ximenpo avatar

Watchers

kissthink avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.