[skip ci] Fix golint warning of kv (#11087)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-11-02 21:40:12 +08:00 committed by GitHub
parent 6d9aaa1830
commit 232f75a001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,10 +30,12 @@ type Value interface {
// StringValue type alias for string to implement Value
type StringValue string
// Serialize serialize the StringValue to byte array.
func (s StringValue) Serialize() []byte {
return []byte(s)
}
// String return the value of StringValue.
func (s StringValue) String() string {
return string(s)
}
@ -41,10 +43,12 @@ func (s StringValue) String() string {
// BytesValue type alias for byte slice to implement value
type BytesValue []byte
// Serialize return the byte array.
func (s BytesValue) Serialize() []byte {
return s
}
// String return the string of byte array.
func (s BytesValue) String() string {
return string(s)
}