Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.26 KB

curr

Go codecov Go Report Card GoDoc License: MIT FOSSA Status

Current file and dir privider for Golang.

Just a sugar for runtime.

import "curr"

// __FILE__
f := curr.File()

// __DIR__
d := curr.Dir()

// __LINE__
l := curr.Line()

// __FUNCTION__
fn := curr.Func()

// basename(__FILE__)
b := curr.Basename()

License

FOSSA Status