func GenSnowflake() snowflake.ID {
	return DefaultSnowflakeGenerator.Generate()
}
GenSnowflake generates a snowflake ID.
package lib
import (
	"github.com/bwmarrin/snowflake"
)
var DefaultSnowflakeGenerator SnowflakeGenerator
func init() {
	node, err := snowflake.NewNode(0)
	if err != nil {
		panic(err)
	}
	DefaultSnowflakeGenerator = node
}
type SnowflakeGenerator interface {
	Generate() snowflake.ID
}