here
--
import "github.com/mdwhatcott/here"
Usage
func Dir
func Dir() string
Dir returns the directory containing the file of the caller.
func File
func File() string
File returns the file path of the caller.
func FileLine
func FileLine() (string, int)
FileLine returns the file and line as separate return values.
func JoinedFileLine
func JoinedFileLine(sep string) string
JoinedFileLine returns a string in the form of line+sep+line.
func Line
func Line() int
Line returns the line number of the caller.