here

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2019 License: MIT, MIT Imports: 1 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

func File

func File() string

func FileLine

func FileLine() (string, int)

func JoinedFileLine

func JoinedFileLine(sep string) string

func Line

func Line() int

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL