Any good Go REPL implementation / tool?

Go lang is fast to compile and can be used as a script by go run prog.go. However, a REPL is more convenient for testing/trying some small pieces of code. Any good Go REPL implementation / tool?

Try gore https://github.com/motemen/gore

Get gore

$ go get -u github.com/motemen/gore

An example

$ gore
gore version 0.2.6  :help for help
gore> :import fmt
gore> fmt.Println("hello world!")
hello world!
13
nil

gore>

Similar Posts

  • Patching with git

    Tutorials on how to create patches and apply patches with git. A nice tutorial: https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ Manuals: git format-patch: https://www.systutorials.com/docs/linux/man/1-git-format-patch/git apply: https://www.systutorials.com/docs/linux/man/1-git-apply/ Read more: How to create a git branch on remote git server How to do diff like `git diff –word-diff` without git on Linux? Cheatsheet: Git Branching with a Git Server What about the…

  • SQL layers on NoSQL databases

    What are the SQL layer solution over NoSQL databases such as key/value stores? Phoenix: A SQL layer on HBase: https://github.com/forcedotcom/phoenix They also show some performance results: https://github.com/forcedotcom/phoenix/wiki/Performance F1 – The Fault-Tolerant Distributed RDBMS Supporting Google’s Ad Business: http://research.google.com/pubs/pub38125.html With F1, we have built a novel hybrid system that combines the scalability, fault tolerance, transparent sharding,…

  • How to allow pre tag in WordPress comments?

    How to allow pre tag in WordPress comments? You can add a filter hook for pre_comment_approved: <?php function filter_handler( $approved , $commentdata ) { // inspect $commentdata to determine approval, disapproval, or spam status return $approved; } add_filter( ‘pre_comment_approved’ , ‘filter_handler’ , ’99’, 2 ); ?> Reference: https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_comment_approved Read more: How to allow contributors to…

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *