github.com/gogf/gf@v1.16.9/.example/util/guid/guid_length.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"math"
     6  	"strconv"
     7  )
     8  
     9  func main() {
    10  	// 36*36^2+36*36+36
    11  	var s string
    12  	fmt.Println(strconv.ParseUint("zzz", 36, 3))
    13  	fmt.Println(1 << 1)
    14  	// MaxInt64
    15  	s = strconv.FormatUint(math.MaxUint64, 16)
    16  	fmt.Println(s, len(s))
    17  	// PID
    18  	s = strconv.FormatInt(1000000, 36)
    19  	fmt.Println(s, len(s))
    20  }