(path string)
| 162 | } |
| 163 | |
| 164 | func loadReleaseNotes(path string) (string, error) { |
| 165 | _, releaseNotes, err := HandleRequest(path, http.MethodGet, constant.TimeOut20s) |
| 166 | if err != nil { |
| 167 | return "", err |
| 168 | } |
| 169 | return string(releaseNotes), nil |
| 170 | } |
| 171 | |
| 172 | func HandleRequest(url, method string, timeout int) (int, []byte, error) { |
| 173 | defer func() { |
no test coverage detected