如何实现一个爬虫系统或则简单的小脚本?一般是定义一个入口页面,然后一个页面会有其他页面的URL,于是从当前页面获取到这些URL加入到爬虫的抓取队列中,然后进入到新页面后再递归的进行上述的操作,其实说来就跟深度遍历或广度遍历一样。 golang由于其编译速度很快,而且对并发(goroutine)的天然支持,配合chan的协程处理,可以很好地实现一个稳定高效的爬虫系统.
2019-12-21 21:17:52 4KB go golang go语言 爬虫
1
go开发实战.doc 非常实用的快速入门手册,知识点很全面,例子也比较丰富。 目录 1. 初识Go语言 1 1.1 Go语言介绍 1 1.1.1 Go语言是什么 1 1.1.2 Go语言优势 1 1.1.3 Go适合用来做什么 2 1.2 环境搭建 2 1.2.1 安装和设置 2 1.2.2 标准命令概述 2 1.2.3 学习资料 2 1.3 第一个Go程序 3 1.3.1 Hello Go 3 1.3.2 代码分析 3 1.3.3 命令行运行程序 4 2. 基础类型 4 2.1 命名 4 2.2 变量 5 2.2.1 变量声明 5 2.2.2 变量初始化 6 2.2.3 变量赋值 6 2.2.4 匿名变量 6 2.3 常量 7 2.3.1 字面常量(常量值) 7 2.3.2 常量定义 8 2.3.3 iota枚举 8 2.4 基础数据类型 10 2.4.1 分类 10 2.4.2 布尔类型 11 2.4.3 整型 11 2.4.4 浮点型 11 2.4.5 字符类型 11 2.4.6 字符串 12 2.4.7 复数类型 12 2.5 fmt包的格式化输出输入 13 2.5.1 格式说明 13 2.5.2 输出 14 2.5.3 输人 14 2.6 类型转换 15 2.7 类型别名 15 3. 运算符 15 3.1 算术运算符 15 3.2 关系运算符 16 3.3 逻辑运算符 16 3.4 位运算符 16 3.5 赋值运算符 17 3.6 其他运算符 17 3.7 运算符优先级 17 4. 流程控制 18 4.1 选择结构 18 4.1.1 if语句 18 4.1.2 switch语句 19 4.2 循环语句 20 4.2.1 for 20 4.2.2 range 20 4.3 跳转语句 21 4.3.1 break和continue 21 4.3.2 goto 21 5. 函数 22 5.1 定义格式 22 5.2 自定义函数 22 5.2.1 无参无返回值 22 5.2.2 有参无返回值 23 5.2.3 无参有返回值 24 5.2.4 有参有返回值 25 5.3 递归函数 26 5.4 函数类型 27 5.5 匿名函数与闭包 27 5.6 延迟调用defer 30 5.6.1 defer作用 30 5.6.2 多个defer执行顺序 30 5.6.3 defer和匿名函数结合使用 31 5.7 获取命令行参数 31 5.8 作用域 32 5.8.1 局部变量 32 5.8.2 全局变量 33 5.8.3 不同作用域同名变量 33 6. 工程管理 34 6.1 工作区 34 6.1.1 工作区介绍 34 6.1.2 GOPATH设置 35 6.2 包 35 6.2.1 自定义包 35 6.2.2 main包 36 6.2.3 main函数和init函数 36 6.2.4 导入包 38 6.3 测试案例 40 6.3.1 测试代码 40 6.3.2 GOPATH设置 42 6.3.3 编译运行程序 43 6.3.4 go install的使用 43 7. 复合类型 45 7.1 分类 45 7.2 指针 45 7.2.1 基本操作 45 7.2.2 new函数 46 7.2.3 指针做函数参数 46 7.3 数组 47 7.3.1 概述 47 7.3.2 操作数组 47 7.3.3 在函数间传递数组 48 7.4 slice 49 7.4.1 概述 49 7.4.2 切片的创建和初始化 49 7.4.3 切片的操作 50 7.4.4 切片做函数参数 52 7.5 map 53 7.5.1 概述 53 7.5.2 创建和初始化 53 7.5.3 常用操作 54 7.5.4 map做函数参数 55 7.6 结构体 56 7.6.1 结构体类型 56 7.6.2 结构体初始化 57 7.6.3 结构体成员的使用 57 7.6.4 结构体比较 58 7.6.5 结构体作为函数参数 59 7.6.6 可见性 59 8. 面向对象编程 61 8.1 概述 61 8.2 匿名组合 61 8.2.1 匿名字段 61 8.2.2 初始化 62 8.2.3 成员的操作 62 8.2.4 同名字段 63 8.2.5 其它匿名字段 64 8.3 方法 65 8.3.1 概述 65 8.3.2 为类型添加方法 66 8.3.3 值语义和引用语义 67 8.3.4 方法集 68 8.3.5 匿名字段 70 8.3.6 表达式 71 8.4 接口 73 8.4.1 概述 73 8.4.2 接口的使用 73 8.4.3 接口组合 75 8.4.4 空接口 77 8.4.5 类型查询 77 9. 异常处理 79 9.1 error接口 79 9.2
1
The Go Programming Language Alan A. A. Donovan Google Inc. Brian W. Kernighan Princeton University
2019-12-21 21:10:01 6.17MB Go Golang Programming Language
1
Hands-On Blockchain with Hyperledger pdf Leverage the power of Hyperledger Fabric to develop Blockchain-based distributed ledgers with ease Key Features Write your own chaincode/smart contracts using Golang on hyperledger network Build and deploy decentralized applications (DApps) Dive into real world blockchain challenges such as integration and scalability Book Description BBlockchain and Hyperledger technologiesare hot topics today. Hyperledger Fabric and Hyperledger Composer are open source projects that help organizations create private, permissioned blockchain networks. These find application in finance, banking, supply chain, and IoT among several other sectors. This book will be an easy reference to explore and build blockchain networks using Hyperledger technologies. The book starts by outlining the evolution of blockchain, including an overview of relevant blockchain technologies. You will learn how to configure Hyperledger Fabric and become familiar with its architectural components. Using these components, you will learn to build private blockchain networks, along with the applications that connect to them. Starting from principles first, you’ll learn to design and launch a network, implement smart contracts in chaincode and much more. By the end of this book, you will be able to build and deploy your own decentralized applications, handling the key pain points encountered in the blockchain life cycle. What you will learn Discover why blockchain is a game changer in the technology landscape Set up blockchain networks using basic Hyperledger Fabric deployment Understand the considerations for creating decentralized applications Learn to integrate business networks with existing systems Write Smart Contracts quickly with Hyperledger Composer Design transaction model and chaincode with Golang Deploy Composer REST Gateway to access the Composer transactions Maintain, monitor, and govern your blockchain solutions Who this book is for The book benefits
2019-12-21 21:07:23 12.27MB hyperledger 区块链 golang
1
Beego中文文档PDF版,便于平板上阅读查看。。。。。。。
2019-12-21 20:51:58 2.5MB golang beego
1
使用步骤: 1. 下载 2. 解压并进入goBoss目录 3. 进入data/config.json, 配置其中的expect_salary, 邮箱等数据(start_reply为自动回复内容, %s2个都不能删。在后面添加) 如果没有chrome浏览器需要安装 4. 打开goBoss.exe畅快体验
2019-12-21 20:35:46 15.14MB windows golang grequests selenium
1
简单配置文件后一次性对多个地址发起多次请求, 可最多100线程同时发送请求
2019-12-21 20:34:47 1.77MB golang post
1
Go语言开发在线商城 .
2019-12-21 20:29:48 1.95MB golang web
1
Go语言15套教程. 01 Go语言基础(一)02 Go语言基础(二)03 GO名库讲解 04 Go语言实战开发一个WEB项目博客系统05 Go语言深度讲解(推荐 2018年1月更新)06 Go语言快速入门(2018年2月更新)07 Go语言协程流量统计(2018年3月更新)08 Go语言入门到实战视频教程(2018年3月更新)09 Go语言打造区块链(2讲)(2018年4月更新)10 GopherChina 2017 大会(PPT)(2018年4月更新)..11 GO语言实战(电子书+源码 2018年4月更新).12推荐 老男孩教育Go语言第一期(2018年4月更新).13 GopherChina 2018大会(PPT)(2018年4月29日更新)14 Go语言开发公开课(持续更新)15 推荐 Google资深工程师深度讲解Go语言
2019-12-21 19:51:45 71B GO语言教程 Go15套教程 Golang
1
Golang之美Golang之美。Golang的哲学 Golang之美 Golang vs Java 风靡世界?! 我们的先行实践
2019-12-21 19:51:45 1.31MB Golang之美
1