mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
24 lines
411 B
Go
24 lines
411 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/util/guid"
|
|
)
|
|
|
|
func main() {
|
|
for i := 0; i < 100; i++ {
|
|
s := guid.S([]byte("123"))
|
|
fmt.Println(s, len(s))
|
|
}
|
|
fmt.Println()
|
|
for i := 0; i < 100; i++ {
|
|
s := guid.S([]byte("123"), []byte("456"))
|
|
fmt.Println(s, len(s))
|
|
}
|
|
fmt.Println()
|
|
for i := 0; i < 100; i++ {
|
|
s := guid.S([]byte("123"), []byte("456"), []byte("789"))
|
|
fmt.Println(s, len(s))
|
|
}
|
|
}
|