libs

package module
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: BSD-3-Clause Imports: 31 Imported by: 0

README

gopher-lua-libs

GoDoc

Package contains is a libs for gopher-lua.

License

Development version, available on github, released under BSD 3-clause.

Installation

go get github.com/vadv/gopher-lua-libs

Index

Usage

For the quick overview you can use standalone interpreter with listed libs. Examples and documentation for modules can be found in their directories.

go get github.com/vadv/gopher-lua-libs/cmd/glua-libs

$ glua-libs example.lua

This example shows basic usage of this libs in your code

package main


import (
        "log"
        "flag"
        "os"

        lua "github.com/yuin/gopher-lua"
        libs "github.com/vadv/gopher-lua-libs"

)
var (
        exec = flag.String("execute", "", "execute lua script")
)


func main() {
        flag.Parse()
        state := lua.NewState()
        libs.Preload(state)
        if *exec != `` {
                if err := state.DoFile(*exec); err != nil {
                        log.Printf("[ERROR] Error executing file: ", err)
                }
        } else {
                log.Println("Target file was not given!")
                os.Exit(0)
        }
}


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Preload

func Preload(L *lua.LState)

Preload preload all gopher lua packages

Types

This section is empty.

Directories

Path Synopsis
aws
cloudwatch
Package cloudwatch implements cloudwatch client api functionality for lua.
Package cloudwatch implements cloudwatch client api functionality for lua.
Package cert_utils provides utility for checking ssl-certs in lua.
Package cert_utils provides utility for checking ssl-certs in lua.
Package chef implements chef client api functionality for lua.
Package chef implements chef client api functionality for lua.
cmd
Package cmd implements golang cmd functionality for lua.
Package cmd implements golang cmd functionality for lua.
glua-libs
glua with preload libs original: https://raw.githubusercontent.com/yuin/gopher-lua/master/cmd/glua/glua.go
glua with preload libs original: https://raw.githubusercontent.com/yuin/gopher-lua/master/cmd/glua/glua.go
Package crypto implements golang package crypto functionality for lua.
Package crypto implements golang package crypto functionality for lua.
Package db implements golang package db functionality for lua.
Package db implements golang package db functionality for lua.
Package filepath implements golang filepath functionality for lua.
Package filepath implements golang filepath functionality for lua.
Package goos implements golang package os functionality for lua.
Package goos implements golang package os functionality for lua.
Port dustin/go-humanize for gopher-lua
Port dustin/go-humanize for gopher-lua
inspect.lua for gopher-lua
inspect.lua for gopher-lua
Package ioutil implements golang package ioutil functionality for lua.
Package ioutil implements golang package ioutil functionality for lua.
Package json implements json decode/encode functionality for lua.
Package json implements json decode/encode functionality for lua.
Package plugin implements golang packege log functionality for lua.
Package plugin implements golang packege log functionality for lua.
Package plugin implements run lua-code from lua-code.
Package plugin implements run lua-code from lua-code.
Package pprof implements golang package pprof functionality.
Package pprof implements golang package pprof functionality.
prometheus
Package regexp implements golang package regexp functionality for lua.
Package regexp implements golang package regexp functionality for lua.
Package runtime implements golang runtime functionality for lua.
Package runtime implements golang runtime functionality for lua.
Package strings implements golang package montanaflynn/stats functionality for lua.
Package strings implements golang package montanaflynn/stats functionality for lua.
Package storage implements persist storage with ttl for to save and share data between differents lua.LState.
Package storage implements persist storage with ttl for to save and share data between differents lua.LState.
drivers
multiple storage engines
multiple storage engines
drivers/memory
this storage can be used for projects that do not store much data and do not save memory
this storage can be used for projects that do not store much data and do not save memory
Package strings implements golang package strings functionality for lua.
Package strings implements golang package strings functionality for lua.
Package tac implements file scanner (from end to up) functionality for lua.
Package tac implements file scanner (from end to up) functionality for lua.
Package tcp implements tcp client lib for lua.
Package tcp implements tcp client lib for lua.
Package telegram implements telegram api bot for lua.
Package telegram implements telegram api bot for lua.
Package template implements template functionality for lua.
Package template implements template functionality for lua.
Package time implements golang package time functionality for lua.
Package time implements golang package time functionality for lua.
Package xmlpath provides xmlpath for lua.
Package xmlpath provides xmlpath for lua.
Package yaml implements yaml decode functionality for lua.
Package yaml implements yaml decode functionality for lua.
Package zabbix implements zabbix api bot for lua.
Package zabbix implements zabbix api bot for lua.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL