Skip to content

Instantly share code, notes, and snippets.

View telecoda's full-sized avatar

Rob Baines telecoda

View GitHub Profile
@abrookins
abrookins / gist:2732551
Created May 19, 2012 22:09
Open a data file in the same directory as the current file
_, filename, _, _ := runtime.Caller(1)
f, err := os.Open(path.Join(path.Dir(filename), "data.csv"))