mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-24 16:41:35 -04:00
39
vendor/github.com/rogpeppe/go-internal/semver/forward.go
generated
vendored
Normal file
39
vendor/github.com/rogpeppe/go-internal/semver/forward.go
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// Package semver is a thin forwarding layer on top of
|
||||
// [golang.org/x/mod/semver]. See that package for documentation.
|
||||
//
|
||||
// Deprecated: use [golang.org/x/mod/semver] instead.
|
||||
package semver
|
||||
|
||||
import "golang.org/x/mod/semver"
|
||||
|
||||
func IsValid(v string) bool {
|
||||
return semver.IsValid(v)
|
||||
}
|
||||
|
||||
func Canonical(v string) string {
|
||||
return semver.Canonical(v)
|
||||
}
|
||||
|
||||
func Major(v string) string {
|
||||
return semver.Major(v)
|
||||
}
|
||||
|
||||
func MajorMinor(v string) string {
|
||||
return semver.MajorMinor(v)
|
||||
}
|
||||
|
||||
func Prerelease(v string) string {
|
||||
return semver.Prerelease(v)
|
||||
}
|
||||
|
||||
func Build(v string) string {
|
||||
return semver.Build(v)
|
||||
}
|
||||
|
||||
func Compare(v, w string) int {
|
||||
return semver.Compare(v, w)
|
||||
}
|
||||
|
||||
func Max(v, w string) string {
|
||||
return semver.Max(v, w)
|
||||
}
|
||||
1
vendor/modules.txt
vendored
1
vendor/modules.txt
vendored
@@ -1672,6 +1672,7 @@ github.com/rogpeppe/go-internal/internal/syscall/windows
|
||||
github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll
|
||||
github.com/rogpeppe/go-internal/lockedfile
|
||||
github.com/rogpeppe/go-internal/lockedfile/internal/filelock
|
||||
github.com/rogpeppe/go-internal/semver
|
||||
# github.com/rs/cors v1.10.1
|
||||
## explicit; go 1.13
|
||||
github.com/rs/cors
|
||||
|
||||
Reference in New Issue
Block a user