mirror of
https://gitee.com/johng/gf
synced 2026-07-06 13:42:46 +08:00
21 lines
319 B
Go
21 lines
319 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math"
|
|
"strconv"
|
|
)
|
|
|
|
func main() {
|
|
// 36*36^2+36*36+36
|
|
var s string
|
|
fmt.Println(strconv.ParseUint("zzz", 36, 3))
|
|
fmt.Println(1 << 1)
|
|
// MaxInt64
|
|
s = strconv.FormatUint(math.MaxUint64, 16)
|
|
fmt.Println(s, len(s))
|
|
// PID
|
|
s = strconv.FormatInt(1000000, 36)
|
|
fmt.Println(s, len(s))
|
|
}
|