https://github.com/mna/gocoro
Lua coroutine implementation in Go
https://github.com/mna/gocoro
Last synced: over 1 year ago
JSON representation
Lua coroutine implementation in Go
- Host: GitHub
- URL: https://github.com/mna/gocoro
- Owner: mna
- Created: 2013-07-26T16:57:07.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-01T16:46:52.000Z (almost 13 years ago)
- Last Synced: 2025-04-10T23:14:42.101Z (over 1 year ago)
- Language: Go
- Homepage: http://0value.com/implementing-lua-coroutines-in-Go
- Size: 996 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocoro
Lua coroutine implementation in a Go package. This repository is the accompanying code for the blog post [Implementing Lua Coroutines In Go][1].
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.
[1]: http://0value.com/implementing-lua-coroutines-in-Go