Documentation
¶
Overview ¶
* @Author: LinkLeong link@icewhale.com * @Date: 2022-05-13 18:15:46 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-21 15:27:53 * @FilePath: /CasaOS/pkg/utils/version/version.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentVersion ¶
func CurrentVersion() string
func IsVersionNewer ¶
IsVersionNewer says whether latest is a later release than current, as osmodule.CompareVersions compares them (a pre-release before its release); a string that is not a version is newer than nothing. So a tag of four numbers (v0.5.30.1) is never newer, being no version, and a tag with a suffix (v0.5.30-1, v0.5.30-ubuntu1) is a pre-release of v0.5.30: older than it, and newer than v0.5.29.
Types ¶
This section is empty.