Coder Social home page Coder Social logo

go-crawler's Introduction

参考

  1. 分布式爬虫实战 | 极客时间
  2. dreamerjackson/crawler

专栏摘抄

  1. Go 语言对协程的设计和对于 I/O 多路复用巧妙的封装,实现了同步编程的语义,但背后实则是异步 I/O 的处理模式。在减轻开发者心理负担的同时,提升了网络 I/O 的处理效率。- 出自 [16|网络爬虫: 一次HTTP请求的魔幻旅途]
  2. 空接口是实现反射的基础,因为空接口中会存储动态类型的信息,这为我们提供了复杂、意想不到的处理能力和灵活性。- 出自 [21|采集引擎:实战接口抽象与模拟浏览器访问]
  3. Rob Pike 在 2014 年的一篇博客中提到了一种优雅的处理方法叫做函数式选项模式(Functional Options)。这种模式展示了闭包函数的有趣用途,目前在很多开源库中都能看到它的身影。- 出自 [28|调度引擎:负载均衡与调度器实战]

官方库 | 第三方库

其他

tag 标签

git commit -am "print resp"
git tag -a v0.0.1 -m "print resp"
git push origin v0.0.1

测试

# 单元测试
go test

# 打印详细信息
go test -v 

# 指定要测试的函数名支持模糊匹配
go test -run=TestSplitWithSubTest

# -c会生成可执行文件
go test -c

# 基准测试
go test -bench=.

# 禁止编译器的优化与内联
go test -gcflags "-N -l" -bench=.

# 代码覆盖率
go test -cover

# 可视化分析代码覆盖率信息
go test -coverprofile=coverage.out
go tool cover -html=coverage.out

go-crawler's People

Contributors

childelins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.