Skip to content

Instantly share code, notes, and snippets.

@mattn
Created March 2, 2012 10:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/1957461 to your computer and use it in GitHub Desktop.
Save mattn/1957461 to your computer and use it in GitHub Desktop.
@rem /* vim:set ft=go:
@echo off
setlocal
set fn=%RANDOM%.go
set fp=%TEMP%\%fn%
more +10 "%~f0" > "%fp%"
(cd "%TEMP%" & go run %fn%)
del "%fp%"
goto :eof
*/
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
@cbluth
Copy link

cbluth commented Feb 4, 2023

woah, cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment