I found a vim plugin that actually call the page directly from a vim buffer.
InstallationI assume here you have pathogen already installed.
note: webapi-vim is a dependency
# cd ~/.vim/bundle # git clone https://github.com/mattn/webapi-vim.git # git clone https://github.com/mattn/goplayground-vim.git
UsageThe plugin is associated with the .go files so you need to open one (you actually don't need to save it)
# vim test.goType your snippet and [ESC]:Playground
... and boom ! Thanks mattn for the plugin !