// NewSessionEngin constructor func NewSessionEngin(lenID uint8, ipProtect bool, stor TStor) *TSession { return &TSession{ ipProtect: ipProtect, gen: genid.NewHTTPGen(lenID), Stor: stor, } }
func main() { gi := genid.NewHTTPGen(184) for i := 0; i < 10; i++ { id := gi.NewID() fmt.Println(id, len(id)) } }