Stack test
This commit is contained in:
parent
32fcdb62fc
commit
a1602d21d9
3
pkg.go
3
pkg.go
@ -23,8 +23,7 @@ var (
|
|||||||
|
|
||||||
func Init() {
|
func Init() {
|
||||||
_, file, _, _ := runtime.Caller(1)
|
_, file, _, _ := runtime.Caller(1)
|
||||||
dir := path.Dir(file)
|
dirBase := path.Dir(file)
|
||||||
dirBase := path.Dir(dir)
|
|
||||||
baseDirLength = len(dirBase)
|
baseDirLength = len(dirBase)
|
||||||
fmt.Printf("--\nDIR: %s\nBASE: %s\nLENGTH: %d\n--\n", file, dirBase, baseDirLength)
|
fmt.Printf("--\nDIR: %s\nBASE: %s\nLENGTH: %d\n--\n", file, dirBase, baseDirLength)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user