Skip to content

Instantly share code, notes, and snippets.

View emilva's full-sized avatar
💯

Emil V emilva

💯
View GitHub Profile
@emilva
emilva / go-shebang-story.md
Created January 26, 2018 11:29 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

### Keybase proof
I hereby claim:
* I am emilva on github.
* I am emilva (https://keybase.io/emilva) on keybase.
* I have a public key whose fingerprint is E7E0 FE14 2E8A 270C 4028 771E ED5D 8F9C BA34 DBB8
To claim this, I am signing this object: