Skip to content

Instantly share code, notes, and snippets.

@cwvh
Created January 21, 2012 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwvh/1651276 to your computer and use it in GitHub Desktop.
Save cwvh/1651276 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# $ gostart x
# vim x.go
FILENAME="$1"
cp "$GOROOT"/doc/Makefile .
sed -i '' -e "s/tmpltohtml/"$FILENAME"/g" -e 's/\.\./$\(GOROOT\)/' -e '/^#.*/d' Makefile
touch "$1".go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment