摘要:
做个笔记,没有连数据库,没有存redis,只是demo package main import ( "errors" "fmt" "log" "net/http" "strings" "time" "github.com/dgrijalva/jwt-go/v4" "github.com/gin-go 阅读全文
摘要:
1. 布尔类型 可比较 2. 整型 可比较 3. 浮点数 可比较 4. 复数 可比较 5. 字串 可比较 6. 指针值 可比较 var num1, num2 int num1 = 8 num2 = 8 pt1 := &num1 pt2 := &num1 pt3 := &num2 //定义一个空指针 阅读全文
摘要:
参考 https://juejin.cn/post/6847902215575699464 package main import ( "fmt" "math/rand" "strconv" "strings" "time" ) type hand uint const ( NilHand hand 阅读全文
摘要:
runtime包 package main import ( "bytes" "log" "os" "runtime" "strconv" "time" ) func getGoroutineID() uint64 { b := make([]byte, 64) b = b[:runtime.Sta 阅读全文
摘要:
docker-compose安装RocketMQ docker-compose.yml version: '3.8' services: namesrv: image: apache/rocketmq:5.3.0 container_name: rmqnamesrv ports: - 9876:98 阅读全文