You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/psankar/build-go-program-on-mouseover

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/psankar/build-go-program-on-mouseover

v0.0.0-20120713175602-1f15b10c2217
Source
Go
Version published
Created
Source

A simple overnight hack to demonstrate the speed of building go programs.

You have a list of simple go programs and a special go program named build-go-program-on-mouseover.go

If you build and execute the above special go program, it will display a list of filenames in the webpage loaded by the above server. On moving your mouse over a program name, the named program is loaded from the disk, built and then executed in a shell, its output is captured and the output is sent to the original webpage. The built binaries are not cleared so as to avoid any locking.

To demonstrate the real compiling speed of go, we should ideally be using a large project with plenty of transitive imports. This is merely a cool thing.

License

All the source files are licensed under Creative Commons Zero License 1.0 http://creativecommons.org/publicdomain/zero/1.0/

TODO:

Though this project was started with an aim of demoing a cool thing in a gotalk, it can be further improved by loading the file list using the appropriate os and template packages. We can make this build any file that we want and not just go files. It will be a good beginner exercise.

FAQs

Package last updated on 13 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts