当前工作目录
设置和获取
package main
import (
"fmt"
"github.com/langwan/langgo"
)
func main() {
langgo.SetWorkDir("./bin")
workDir := langgo.GetWorkDir()
fmt.Println(workDir)
}
./bin
Last updated
package main
import (
"fmt"
"github.com/langwan/langgo"
)
func main() {
langgo.SetWorkDir("./bin")
workDir := langgo.GetWorkDir()
fmt.Println(workDir)
}
./bin
Last updated