go-web/framework/utils/exec.go

13 lines
179 B
Go
Raw Permalink Normal View History

2024-09-30 11:42:37 +00:00
package utils
import "os"
// Get the current folder with / suffix
func GetExecDirectory() string {
path, err := os.Getwd()
if err != nil {
return ""
}
return path + "/"
}