go_mruby

package module
v1.1.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 1 Imported by: 0

README

mruby module for Go

This Go package let you use mruby interpreter. We use mruby C librarary (clone from https://github.com/mruby/mruby). Mruby license is included and you can find it in file mruby/LICENSE (MIT license). First step: get package by using go get:

go get webimizer.dev/go_mruby

IMPORTANT: When you run go get command you may get error. To fix that, you need to copy file mruby/libmruby.a to your project root directory. Example bash command to run on your project root directory:

export GOPATH=$(go env GOPATH)
mkdir mruby
cp $GOPATH/pkg/mod/webimizer.dev/go_mruby@v1.0.0/mruby/libmruby.a ./mruby/libmruby.a

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mruby_close added in v1.1.0

func Mruby_close()

func Mruby_load_from_file added in v1.1.0

func Mruby_load_from_file(filepath string)

func Mruby_load_from_file_entry_point added in v1.1.0

func Mruby_load_from_file_entry_point(filepath string, entryPoint string)

func Mruby_load_from_string

func Mruby_load_from_string(code string)

func Mruby_open added in v1.1.0

func Mruby_open()

Types

This section is empty.

Jump to

Keyboard shortcuts

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