Giter Site home page Giter Site logo

Comments (4)

HeavyWombat avatar HeavyWombat commented on May 21, 2024 2

@jlunaq Apologies for the late reply. I am busy at the moment with a lot of things. If you do not mind, I would like to keep it open. My idea would be another reporter type, one that is using Go templates to create the report output. This way it would be generic enough to create HTML, or JSON, or Markdown style reports. However, I cannot really say when I find time for an implementation. PRs are always welcome, too.

from dyff.

HeavyWombat avatar HeavyWombat commented on May 21, 2024

Yes, definitely. I wrote the package in such a way that it would be possible to just use the difference detection part as a library. Besides dyff itself, there are at least two other projects I know that use it as a library. That being said, it sure could use a bit refactoring/restructuring to be a bit more convenient. Let me know if there is something unclear or could be done better.

Main entry point is: github.com/homeport/dyff/pkg/dyff.CompareInputFiles(). This takes in ytbx.InputFiles and optional compare options, for example to ignore order changes in lists. The github.com/gonvenience/ytbx.InputFile is mostly there due to the fact that you need support for files with multiple documents and different input sources (local file, remote file, or stdin). You get that with ytbx.LoadFile().

from dyff.

jlunaq avatar jlunaq commented on May 21, 2024

Thanks @HeavyWombat. I already looked at the tests and they give me a clue about how to use it as a library. I think I have no problem with that at all. Could you please only let me know how can I customize the report to be an html table instead?, I can be working on a fork and submit a PR if that works for you.

from dyff.

jlunaq avatar jlunaq commented on May 21, 2024

No worries. I thought I required that feature, but my team told me it wasn't really needed. However, if I plan to implement it in the future, I will let you know. Please keep this open

from dyff.

Related Issues (20)

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.