MCPcopy Index your code
hub / github.com/coder/coder / ExternalURL

Function ExternalURL

buildinfo/buildinfo.go:124–135  ·  view source on GitHub ↗

ExternalURL returns a URL referencing the current Coder version. For production builds, this will link directly to a release. For development builds, this will link to a commit.

()

Source from the content-addressed store, hash-verified

122// For production builds, this will link directly to a release.
123// For development builds, this will link to a commit.
124func ExternalURL() string {
125 readExternalURL.Do(func() {
126 repo := "https://github.com/coder/coder"
127 revision, valid := Revision()
128 if !valid {
129 externalURL = repo
130 return
131 }
132 externalURL = fmt.Sprintf("%s/commit/%s", repo, revision)
133 })
134 return externalURL
135}
136
137// Time returns when the Git revision was published.
138func Time() (time.Time, bool) {

Callers 8

NewFunction · 0.92
TestBuildInfoFunction · 0.92
updateCheckMethod · 0.92
TestBuildInfoFunction · 0.92
DefaultSupportLinksFunction · 0.92
TestRootFunction · 0.92
defaultVersionInfoFunction · 0.92
buildInfoMethod · 0.92

Calls 2

RevisionFunction · 0.85
DoMethod · 0.65

Tested by 3

TestBuildInfoFunction · 0.74
TestBuildInfoFunction · 0.74
TestRootFunction · 0.74