Download internal/shell/coreutils.go from SaylorTwift/crush: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/SaylorTwift/crush/resolve/main/internal/shell/coreutils.go
- Command line
-
hf download hf://SaylorTwift/crush/internal/shell/coreutils.go
-
curl -L -o coreutils.go https://huggingface.co/SaylorTwift/crush/resolve/main/internal/shell/coreutils.go
362 Bytes
| package shell | |
| import ( | |
| "os" | |
| "runtime" | |
| "strconv" | |
| ) | |
| var useGoCoreUtils bool | |
| func init() { | |
| // If CRUSH_CORE_UTILS is set to either true or false, respect that. | |
| // By default, enable on Windows only. | |
| if v, err := strconv.ParseBool(os.Getenv("CRUSH_CORE_UTILS")); err == nil { | |
| useGoCoreUtils = v | |
| } else { | |
| useGoCoreUtils = runtime.GOOS == "windows" | |
| } | |
| } | |