MCPcopy Create free account
hub / github.com/facebook/time / parseResponse

Function parseResponse

calnex/api/api.go:510–517  ·  view source on GitHub ↗
(response string)

Source from the content-addressed store, hash-verified

508 errAPI = errors.New("invalid response from API")
509)
510
511func parseResponse(response string) (string, error) {
512 s := strings.Split(strings.TrimSuffix(response, "\n"), "=")
513 if len(s) != 2 {
514 return "", errAPI
515 }
516
517 return s[1], nil
518}
519
520// formatHost ensures the device address is properly formatted for URL construction.

Callers 3

FetchChannelProbeMethod · 0.85
FetchChannelTargetMethod · 0.85
TestParseResponseFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseResponseFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…