上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: MySQL架构 MySQL分为Sever层和存储引擎层 Server层负责建立连接、分析和执行SQL 连接器、查询缓存、解析器、预处理器、优化器、执行器 内置函数:日期、事件、数学、加密函数 跨存储引擎的功能:存储过程、触发器、视图 存储引擎负责数据的存储和提取 InnoDB(5.5版本开始默认引擎 阅读全文
posted @ 2023-02-23 21:26 roadwide 阅读(536) 评论(0) 推荐(0) 编辑
摘要: # 客户端回合 **Client Hello** * 客户端使用的TLS版本 * 支持的密码套件**列表** * 随机数(Client Random) # 服务器回合 **Server Hello** * 确认TLS版本号是否支持 * 选择一个密码套件 * 随机数(Server Random) ** 阅读全文
posted @ 2023-02-22 22:20 roadwide 阅读(43) 评论(0) 推荐(0) 编辑
摘要: func fib() func() int { var n1, n2 int return func() int { if n1 == 0 && n2 == 0 { n1 = 1 } else { n1, n2 = n2, n1 + n2 } return n2 } } next := fib() 阅读全文
posted @ 2023-02-20 21:21 roadwide 阅读(57) 评论(0) 推荐(0) 编辑
摘要: backticks When using backticks (`) to make strings(Raw string literals), backslashes (\) don't have any special meaning and don't mark the beginning o 阅读全文
posted @ 2023-02-20 17:06 roadwide 阅读(153) 评论(0) 推荐(0) 编辑
摘要: rune与string The rune type in Go is an alias for int32. Given this underlying int32 type, the rune type holds a signed 32-bit integer value. However, u 阅读全文
posted @ 2023-02-20 11:47 roadwide 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 常见用法 var ages map[string]int // 只声明不初始化是nil,赋值会panic: assignment to entry in nil map fmt.Println(ages == nil) // "true" fmt.Println(len(ages) == 0) // 阅读全文
posted @ 2023-02-19 22:00 roadwide 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 常用函数 t, err := time.Parse(layout,date) // time.Time, error t := time.Date(1995,time.September,22,13,0,0,0,time.UTC) formatedTime := t.Format("Mon, 01/ 阅读全文
posted @ 2023-02-19 21:42 roadwide 阅读(12) 评论(0) 推荐(0) 编辑
摘要: import "math/rand" n := rand.Intn(100) // n is a random int, 0 <= n < 100 f := rand.Float64() // f is a random float64, 0.0 <= f < 1.0 x := []string{" 阅读全文
posted @ 2023-02-19 16:17 roadwide 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Structs 类型定义(type)相当于一种别名 将struct定义为一种类型Car NewCar函数return &Car{},返回指针 // car.go package elon // Car implements a remote controlled car. type Car stru 阅读全文
posted @ 2023-02-19 15:41 roadwide 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 不需要手动break default是找不到case时执行 可以对多个case执行同样的操作 operatingSystem := "windows" switch operatingSystem { case "windows", "linux": // do something if the o 阅读全文
posted @ 2023-02-19 15:28 roadwide 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页