refactor(global): 将DefaultGenerator移至global包并更新引用,移除utils包中的默认生成器

This commit is contained in:
1
2025-09-22 14:48:55 +00:00
parent 55ca29a22e
commit c0cda6fa58
2 changed files with 5 additions and 13 deletions

View File

@@ -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 {