diff --git a/sonyflake/id.go b/sonyflake/id.go index 4eeb9e3..e2b8011 100644 --- a/sonyflake/id.go +++ b/sonyflake/id.go @@ -18,8 +18,8 @@ func IDFromString(s string) (ID, error) { } // MarshalText ... -func (i *ID) MarshalText() ([]byte, error) { - return []byte(strconv.FormatInt(int64(*i), 10)), nil +func (i ID) MarshalText() ([]byte, error) { + return []byte(strconv.FormatInt(int64(i), 10)), nil } // UnmarshalText ...