-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/middleware: add latest major version middleware function
This change introduces a middleware function for the new GetLatestMajorVersion function. We also rename the function name to LatestVersions to clarify the scope better. The latest major version value is generated and writen into new placeholder values that is prepared for the upcoming HTML changes. Updates golang/go#37765 Change-Id: I1f3b19a4e2cfb290000f756e8548670cbfd4033d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/251157 Reviewed-by: Jonathan Amsterdam <jba@google.com>
- Loading branch information
Miguel Acero
committed
Aug 31, 2020
1 parent
6e7412d
commit 6f12538
Showing
6 changed files
with
134 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters