In C/C++ you can use __FILE__ and __LINE__ to get access to the current file and line number.
__FILE__
__LINE__
Does Go provide something similar?
Indeed it does:
http://golang.org/pkg/runtime/#Caller
runtime.Caller can also be used to get the file name/line number of calling functions, too.
runtime.Caller