16 lines
216 B
Go
16 lines
216 B
Go
|
package idgenerator
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func TestGenIdInt64(t *testing.T) {
|
||
|
for i := 0; i < 1024; i++ {
|
||
|
id, err := GenIdInt64(int64(0))
|
||
|
fmt.Println(id, err)
|
||
|
time.Sleep(time.Nanosecond)
|
||
|
}
|
||
|
}
|