未验证 提交 232f75a0 编写于 作者: D dragondriver 提交者: GitHub

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

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 6d9aaa18
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册