Skip to content

A python based go interpreter like python command line to write and execute small go code snippets

License

Notifications You must be signed in to change notification settings

vickeykumar/Go-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-interpreter

A python based go REPL like python command line to write and execute small go code snippets. If you want to test your go code snippets quickly or experiment with golang, please give it a try.

Example

using documentation and loop demo

using structs, array and slices demo

Prerequisites

Go-interpreter requires go and godoc binaries installed in your system path. please set your GOPATH.

Installation

clone this repository in your local machine and run following commands:

OS X & Linux:

cd Go-interpreter
sudo make install

Example

Windows:

use gointerpreter.py directly to access the go REPL.

python gointerpreter.py

Inspiration

gointerpreter is greatly inspired by python like interactive shell/REPL where user can easily experiment with language and learn faster.

TODO

  • Syntax completion
  • Configuration
  • API
  • Undoing input

Author

Vickey Kumar [email protected]

About

A python based go interpreter like python command line to write and execute small go code snippets

Resources

License

Stars

Watchers

Forks

Packages

No packages published