diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 22:14:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 16:16:48 -0600 |
| commit | 40689e87610ce8829b9fc0c33bc46c5db40c1208 (patch) | |
| tree | e874e9a2bff264088550a8a8dd5ee7e68c23fe2d | |
| parent | dc905f7a396f42ee5330e2d2552f8390e2cc472b (diff) | |
show dev versionv0.22.81v0.22.80v0.22.79v0.22.78v0.22.77v0.22.76v0.22.75v0.22.74v0.22.73v0.22.72v0.22.71v0.22.70v0.22.69v0.22.68v0.22.67v0.22.66v0.22.65v0.22.64v0.22.63v0.22.62v0.22.61v0.22.60v0.22.59v0.22.58v0.22.57v0.22.56v0.22.55v0.22.54v0.22.53v0.22.52v0.22.51v0.22.50v0.22.49v0.22.48v0.22.47
| -rw-r--r-- | indexHtml.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/indexHtml.go b/indexHtml.go index db5e35f..48a1a01 100644 --- a/indexHtml.go +++ b/indexHtml.go @@ -4,8 +4,6 @@ import ( "fmt" "net/http" "strings" - - "go.wit.com/log" ) func indexHeader(w http.ResponseWriter) { @@ -39,8 +37,8 @@ func indexBodyStart(w http.ResponseWriter) { fmt.Fprintln(w, " <th>Package (IPv6 only)</th>") fmt.Fprintln(w, " <th>Documentation</th>") fmt.Fprintln(w, " <th>Version</th>") - fmt.Fprintln(w, " <th>Age</th>") fmt.Fprintln(w, " <th>Dev Version</th>") + fmt.Fprintln(w, " <th>Age</th>") fmt.Fprintln(w, " <th>Description</th>") // fmt.Fprintln(w, " <th>Authoritative sources (IPv6 only)</th>") // fmt.Fprintln(w, " <th></th>") @@ -99,18 +97,19 @@ func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, desc stri // fmt.Fprintln(w, " <td>"+gourl+"</td>") fmt.Fprintln(w, " <td> <a href=\"//"+gourl+"\">"+gourl+"</a></td>") fmt.Fprintln(w, " <td> <a href=\"//pkg.go.dev/"+gourl+"\"> <img src=\"goReference.svg\" alt=\"pkg.go.dev\" /> </a> </td>") - var vtime, version string + var vtime, version, dver string gourl = strings.TrimSpace(gourl) if repo, ok := gitMap[gourl]; ok { version = repo.GetLastTag() age := repo.NewestAge() vtime = formatDuration(age) + dver = repo.GetDevelVersion() } - log.Info("gopath", gourl, "dur", vtime, "version", version) + // log.Info("gopath", gourl, "dur", vtime, "version", version) fmt.Fprintln(w, " <td>"+version+"</td>") // version + fmt.Fprintln(w, " <td>"+dver+"</td>") // dev version fmt.Fprintln(w, " <td>"+vtime+"</td>") // dev version - fmt.Fprintln(w, " <td></td>") // dev version fmt.Fprintln(w, " <td>"+desc+"</td>") // fmt.Fprintln(w, " <td> <a href=\"//"+gourl+"\">"+giturl+"</a></td>") fmt.Fprintln(w, " </tr>") |
