Skip to content

Instantly share code, notes, and snippets.

View erning's full-sized avatar
🌴
On vacation

Zhang Erning erning

🌴
On vacation
View GitHub Profile
@erning
erning / path.go
Created December 17, 2012 08:26 — forked from sp3c73r2038/path.py
golang
/*
put this script in the path like
assumed /tmp (cwd)
/tmp/dir1/dir2/path.go
/tmp/dir3 symlinked to /tmp/dir1/dir2
and run with
gorun ../tmp/dir3/path.go
or build path.go and run with ../tmp/dir3/path