Skip to content

zond/chicklet

Repository files navigation

chicklet

Go in Go.

What

This is a slightly modified version of https://bitbucket.org/binet/go-eval that aims towards simplifying evaluating and interacting with Go expressions from Go programs.

How

context := chicklet.NewContext()
context.Eval("func add(i, j int) int { return i + j }")
fmt.Println(context.Eval("add(2, 3)"))

Look at https://github.com/zond/chicklet/blob/master/example/example.go for an example of more things you can do.

Look at https://github.com/zond/chicklet/blob/master/chicklet_test.go for a full definition of what I consider working.

About

A fork of https://bitbucket.org/binet/go-eval to simplify interaction between compiled and interpreted Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages