Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eatonphil/goi
- Owner: eatonphil
- Created: 2019-10-09T13:20:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-23T12:51:56.000Z (about 5 years ago)
- Last Synced: 2024-05-02T02:09:06.759Z (7 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 27
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goi
An interpreter for Go.
### Use
```golang
$ go build main.go
$ cat examples/iterative_fib.go
package mainfunc fib(n int) int {
a := 0
b := 0
c := 1for 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
```