14 lines
146 B
Go
14 lines
146 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"path/filepath"
|
||
|
)
|
||
|
|
||
|
type Utils struct {
|
||
|
}
|
||
|
|
||
|
func (u *Utils) CurrentDir() string {
|
||
|
return filepath.Dir(os.Args[0])
|
||
|
}
|