Skip to content

otiai10/curr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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