mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-16 15:16:44 +00:00
GODT-1977: missing import.
This commit is contained in:
@ -20,11 +20,14 @@
|
|||||||
|
|
||||||
package constants
|
package constants
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"github.com/Masterminds/semver/v3"
|
||||||
|
)
|
||||||
|
|
||||||
// AppVersion returns the full rendered version of the app (to be used in request headers).
|
// AppVersion returns the full rendered version of the app (to be used in request headers).
|
||||||
func AppVersion(version string) string {
|
func AppVersion(version string) string {
|
||||||
ver, _ := semver.MustParse(version).SetPrerelase("dev")
|
ver, _ := semver.MustParse(version).SetPrerelease("dev")
|
||||||
|
|
||||||
return fmt.Sprintf("%v-%v@%v", getAPIOS(), AppName, ver.String())
|
return fmt.Sprintf("%v-%v@%v", getAPIOS(), AppName, ver.String())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user