1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-05 08:50:13 +00:00

vendor change

This commit is contained in:
kinarashah
2019-08-20 13:37:04 -07:00
committed by Alena Prokharchyk
parent 734c651f16
commit 6f7f25cbcb
16 changed files with 1338 additions and 31 deletions

30
vendor/github.com/blang/semver/sql.go generated vendored Normal file
View File

@@ -0,0 +1,30 @@
package semver
import (
"database/sql/driver"
"fmt"
)
// Scan implements the database/sql.Scanner interface.
func (v *Version) Scan(src interface{}) (err error) {
var str string
switch src := src.(type) {
case string:
str = src
case []byte:
str = string(src)
default:
return fmt.Errorf("version.Scan: cannot convert %T to string", src)
}
if t, err := Parse(str); err == nil {
*v = t
}
return
}
// Value implements the database/sql/driver.Valuer interface.
func (v Version) Value() (driver.Value, error) {
return v.String(), nil
}