Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eatonphil/goi

What else would you do with go/parser
https://github.com/eatonphil/goi

Last synced: about 1 month ago
JSON representation

What else would you do with go/parser

Awesome Lists containing this project

README

        

# goi

An interpreter for Go.

### Use

```golang
$ go build main.go
$ cat examples/iterative_fib.go
package main

func fib(n int) int {
a := 0
b := 0
c := 1

for i := 1; i < n-1; i++ {
a = b
b = c
c = a + b
}

return c
}

func main() {
println(fib(15))
}
$ ./main examples/iterative_fib.go
377
```