Code Monkey home page Code Monkey logo

Comments (3)

ysmood avatar ysmood commented on June 5, 2024

因为只有测试的时候会用到 gop,所以就放到 got 里了,确实可以独立出去,它没有什么依赖

from got.

ysmood avatar ysmood commented on June 5, 2024

你在非测试代码里也会用到 gop 吗?

from got.

pnck avatar pnck commented on June 5, 2024

你在非测试代码里也会用到 gop 吗?

不会。其实一般都是 debug 的时候才会需要个比较好的 pretty print,单元测试写好存档时通常会精简成只返回结果的形式, pretty print 反而会 flood 控制台输出。

另外既然作者还在,想顺便问问有没有能与标准库 logger 结合的方法? 如果可以的话就能当成 error dump 来用了,现在只能在控制台中找字段还是比较局限的,好看大于实用意义

from got.

Related Issues (14)

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.