Documentation ¶
Index ¶
- Constants
- func AppendJsonSlice(jsonArr string, key string) string
- func AppendSlice(ids []string, key string) []string
- func CompareVersions(newVersion, oldVersion string) int
- func IsExistJsonSlice(jsonArr string, key string) bool
- func IsExistSlice(ids []string, key string) bool
- func IsValidVersion(version string) bool
Constants ¶
View Source
const ( VersionGreater = 1 VersionEqual = 0 VersionLess = -1 VersionInvalid = -2 )
Variables ¶
This section is empty.
Functions ¶
func AppendJsonSlice ¶
func AppendSlice ¶
func IsExistJsonSlice ¶
func IsExistSlice ¶
func IsValidVersion ¶
Validate if version is valid or not Valid version could be V1.0, V1.2.3, or V1.2.3.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.