摘要: 代码示例全部保存在,欢迎star:https://github.com/EnochZg/golang examples 安装组件 使用 先创建ini后缀的配置文件,本文以config.ini为例 在main函数中加入以下代码读取username配置 运行后即可读取到username的值,上文中的Se 阅读全文
posted @ 2020-03-13 22:27 平也 阅读(3879) 评论(0) 推荐(1) 编辑
摘要: int后的数字代表二进制位数,int4就代表0000 1111,换算为10进制的取值范围就是 2^4 2^4 1。 另:一个字节有8位,int8是一个字节,int16为两个字节。 阅读全文
posted @ 2020-03-13 17:57 平也 阅读(12927) 评论(0) 推荐(0) 编辑