Skip to content
Lua coroutine implementation in Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
coro.go
coro_test.go
cov.out
generic_test.go
gocoro.test

README.md

gocoro

Lua coroutine implementation in a Go package. This repository is the accompanying code for the blog post Implementing Lua Coroutines In Go.

It has different implementations depending on the branches. The simple-int branch provides the basic implementation for a simple use-case that only yields an integer. The generic (and master) branch is the full-featured, empty interface-based implementation that is closest to Lua's coroutines. The make-func branch is an experimental branch for a reflect package-based implementation.

You can’t perform that action at this time.