mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +08:00
16 lines
214 B
Go
16 lines
214 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package file
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
// Pwd 获取当前路径的正斜杠表示
|
|
func Pwd() string {
|
|
path, _ := os.Getwd()
|
|
return strings.ReplaceAll(path, "\\", "/")
|
|
}
|