MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadReleaseNotes

Function loadReleaseNotes

agent/utils/version/version.go:164–170  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

162}
163
164func 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
172func HandleRequest(url, method string, timeout int) (int, []byte, error) {
173 defer func() {

Callers 1

GetUpgradeVersionInfoFunction · 0.70

Calls 1

HandleRequestFunction · 0.70

Tested by

no test coverage detected