上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页
摘要: "Go 程序是怎样跑起来的" "Go 内存对齐 结构体" "Go 内存对齐 结构体 校对版" 理解类型的本质 当我使用 C/C++ 编写代码时,理解类型(type)是非常有必要的。如果不理解类型,你就会在编译或者运行代码的时候,碰到一大堆麻烦。无论什么语言,类型都涉及到了编程语法的方方面面。 加强对 阅读全文
posted @ 2020-01-07 16:54 mmaotai 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 单体应用 所有业务功能都在一个应用程序里面 研发人员开发并维护同一个代码库 架构简单,典型的三层架构 单体应用横向扩展 微服务 “微服务”就是微小的服务或应用,比如linux上各种工具:ls,cat,awk,wc,cp,rm等 基本原理:让每个服务专注的做好一件事情 每个服务单独开发和部署,服务之间 阅读全文
posted @ 2020-01-06 10:28 mmaotai 阅读(342) 评论(0) 推荐(0) 编辑
摘要: //定义多行字符串: `` 里面的控制字符不会被转义 func main() { s := `hello \n\r world` fmt.Println(s) } //hello //\n\r world //格式化输出 func main() { s := "a" fmt.Println(s[0] 阅读全文
posted @ 2020-01-05 20:04 mmaotai 阅读(166) 评论(0) 推荐(0) 编辑
摘要: "go addressable 详解" "Go 挖坑指南: “cannot take the address of XXX” and “cannot call pointer method on XXX" "go语言规范中对Address_operators说明" 阅读全文
posted @ 2020-01-05 12:39 mmaotai 阅读(303) 评论(0) 推荐(0) 编辑
摘要: go数据结构与json数据结构对应( json.Unmarshal帮助手册) 一些例子 "go by example: json" package main import ( "encoding/json" "fmt" "os" ) type response1 struct { Page int 阅读全文
posted @ 2019-12-30 10:26 mmaotai 阅读(2124) 评论(0) 推荐(0) 编辑
摘要: django内置用户认证 django内置用户模型 password字段使用的校验算法 sha2介绍 Django 内置的User类提供了用户密码的存储、验证、修改等功能, 默认使用pbkdf2_sha256方式来存储和管理用的密码。 "passlib模块" "参考" SSL行业选择SHA作为数字签 阅读全文
posted @ 2019-12-29 00:49 mmaotai 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 流操作 "Go教程:21 io.Reader/Writer详解" 可读可写stream 原理 I/O操作也叫输入输出操作.其中I是指Input,O是指Output,用于读或者写数据的,有些语言中也叫 流操作 , 是指数据通信的通道. Golang 标准库对 IO 的抽象非常精巧,各个组件可以随意组合 阅读全文
posted @ 2019-12-28 11:50 mmaotai 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: ```//index.html{{if gt .Age 18}} hello, old man, {{.Name}}{{else}} hello,young man, {{.Name}}{{end}}``````import ( "text/template")p := Person{Name: "Mary", Age: 11}t, _ := template.ParseFiles("... 阅读全文
posted @ 2019-12-22 22:38 mmaotai 阅读(176) 评论(0) 推荐(0) 编辑
摘要: ``` // grpc序列化/反序列化成对应语言的对象 // 1.写idl(数据类型+方法) // 2.生成对应语言的序列化/反序列化代码 // 3.方法需要自己实现 // 环境(将gopath/bin加入path) //安装grpc引擎 go get -u google.golang.org/grpc //安装grpc-go插件(适配go语言) go get -u github.com/gola 阅读全文
posted @ 2019-12-21 12:53 mmaotai 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: vue基础 vue响应式数据变化 "Object.defineProperty实现数据劫持" vue中data都被代理到了vm实例上,例如vm.name 只要模版中用到的变量,必须先在vm上定义,用之前先声明. vue属性 vue指令 阅读全文
posted @ 2019-12-11 23:54 mmaotai 阅读(677) 评论(0) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页