MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / cliPlatform

Function cliPlatform

api/client.go:143–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143func cliPlatform() string {
144 switch runtime.GOOS {
145 case "darwin":
146 return "mac"
147 case "linux", "windows":
148 return runtime.GOOS
149 default:
150 return ""
151 }
152}
153
154func parseRetryAfter(value string, now time.Time) (time.Duration, bool) {
155 value = strings.TrimSpace(value)

Callers 2

doRequestMethod · 0.85

Calls

no outgoing calls

Tested by 1