forked from TrueCloudLab/rclone
vendor: add qingstor-sdk-go for QingStor
This commit is contained in:
parent
f682002b84
commit
466dd22b44
136 changed files with 15952 additions and 1 deletions
11
vendor/github.com/pengsrc/go-shared/check/host.go
generated
vendored
Normal file
11
vendor/github.com/pengsrc/go-shared/check/host.go
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
package check
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
|
||||
// HostAndPort checks whether a string contains host and port.
|
||||
// It returns true if matched.
|
||||
func HostAndPort(hostAndPort string) bool {
|
||||
return regexp.MustCompile(`^[^:]+:[0-9]+$`).MatchString(hostAndPort)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue