MCPcopy Index your code
hub / github.com/writefreely/writefreely / wfReleaseNotesURL

Function wfReleaseNotesURL

updates.go:89–95  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

87}
88
89func 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
98func newUpdatesCache(expiry time.Duration) *updatesCache {

Callers 2

handleViewAdminUpdatesFunction · 0.85
ReleaseNotesURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected