mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Rename command.VERSION to command.Version
This commit is contained in:
parent
eeb5245cb9
commit
794e5a22c1
@ -449,7 +449,7 @@ func GetBookmarks(c *gin.Context) {
|
||||
|
||||
func GetInfo(c *gin.Context) {
|
||||
successResponse(c, gin.H{
|
||||
"version": command.VERSION,
|
||||
"version": command.Version,
|
||||
"git_sha": command.GitCommit,
|
||||
"build_time": command.BuildTime,
|
||||
})
|
||||
|
@ -136,7 +136,7 @@ For proper read-only access please follow postgresql role management documentati
|
||||
}
|
||||
|
||||
func printVersion() {
|
||||
str := fmt.Sprintf("Pgweb v%s", command.VERSION)
|
||||
str := fmt.Sprintf("Pgweb v%s", command.Version)
|
||||
if command.GitCommit != "" {
|
||||
str += fmt.Sprintf(" (git: %s)", command.GitCommit)
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
package command
|
||||
|
||||
const VERSION = "0.10.0"
|
||||
const (
|
||||
Version = "0.10.0"
|
||||
)
|
||||
|
||||
var (
|
||||
GitCommit string
|
||||
|
Loading…
Reference in New Issue
Block a user