From 7b50a0122b5bac1bb5c460aa7e0534ea2caac796 Mon Sep 17 00:00:00 2001 From: xiao7737 <773708486@qq.com> Date: Mon, 1 Jun 2020 16:06:19 +0800 Subject: [PATCH] fix some wrong notes for int64_key.go --- int64_key.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/int64_key.go b/int64_key.go index c1280ca..e80fcee 100644 --- a/int64_key.go +++ b/int64_key.go @@ -4,17 +4,17 @@ type Int64Key struct { value int64 } -// PartitionID is created by string's hash +// PartitionKey is value of itself func (i *Int64Key) PartitionKey() int64 { return i.value } -// Value is the raw string +// Value is the int64 func (i *Int64Key) Value() interface{} { return i.value } -// StrKey is to convert a string to StringKey +// I64Key is to convert a int64 to Int64Key func I64Key(key int64) *Int64Key { return &Int64Key{key} }