diff --git a/snowflake.go b/snowflake.go index 173691a..f112a05 100644 --- a/snowflake.go +++ b/snowflake.go @@ -97,7 +97,7 @@ func NewNode(node int64) (*Node, error) { nodeShift = StepBits if node < 0 || node > nodeMax { - return nil, errors.New("Node number must be between 0 and " + strconv.Itoa(nodeMax)) + return nil, errors.New("Node number must be between 0 and " + strconv.FormatInt(nodeMax, 10)) } return &Node{