(v string)
| 87 | } |
| 88 | |
| 89 | func wfReleaseNotesURL(v string) string { |
| 90 | ver := strings.TrimPrefix(v, "v") |
| 91 | ver = strings.TrimSuffix(ver, ".0") |
| 92 | // hack until go 1.12 in build/travis |
| 93 | seg := strings.Split(ver, ".") |
| 94 | return "https://blog.writefreely.org/version-" + strings.Join(seg, "-") |
| 95 | } |
| 96 | |
| 97 | // newUpdatesCache returns an initialized updates cache |
| 98 | func newUpdatesCache(expiry time.Duration) *updatesCache { |
no outgoing calls
no test coverage detected