refactor(global): 将DefaultGenerator移至global包并更新引用,移除utils包中的默认生成器
This commit is contained in:
@@ -27,7 +27,7 @@ func ParseSnowflake(s string) (Snowflake, error) {
|
||||
}
|
||||
|
||||
// DefaultGenerator is a Generator with the epoch set to Jan 1, 2025 UTC
|
||||
var DefaultGenerator = NewGen(time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC), 0)
|
||||
|
||||
|
||||
// Generator holds info needed for generating snowflakes with 32 node support
|
||||
type Generator struct {
|
||||
|
||||
Reference in New Issue
Block a user