Thanks to visit codestin.com
Credit goes to github.com

Skip to content

eatonphil/goi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goi

An interpreter for Go.

Use

$ 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

About

What else would you do with go/parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages