nowfound

Dev tools · March 20, 2023

GT

Go-testdeep, testing JSON content in Golang

The last release of go-testdeep brings a lot of new features, including some JSON enhancements making it probably one of the best solutions to do JSON comparisons in golang world

Go-testdeep, testing JSON content in Golang launched on March 20, 2023 with 14 votes, #1,802 of 5,007 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 3 years on.

In plain words

Go-testdeep is a testing tool for Go developers that specializes in comparing and validating JSON content. The software provides capabilities for checking JSON structures and values during testing workflows. It includes enhancements designed to streamline JSON comparison tasks in Go projects. The tool is intended for Go developers who need to verify JSON data in their tests.

written from the facts on this page · September 2026

From the sources

func JSON(expectedJSON any, params ...any) TestDeep JSON operator allows to compare the JSON representation of data against expectedJSON. expectedJSON can be a: string containing JSON data like {

JSON operator allows to compare the JSON representation of data against expectedJSON . expectedJSON can be a: expectedJSON JSON value can contain placeholders. The params are for any placeholder parameters in expectedJSON . params can contain TestDeep operators as well as raw values. A placeholder can be numeric like $2 or named like $name and always references an item in params . params can also contains [encoding/json/v2.Options] when [encoding/json/v2] must be used, see jsonv2 example. Numeric placeholders reference the n’th “operators” item (starting at 1). Named placeholders are used with Tag operator as follows: It makes no difference whatever the underlying type of…from go-testdeep.zetta.rocks

Does a similar job

all alternatives →

More dev tools this month

the category →
  • /dev/null▲490

    a social network for devs

    Dev tools · 4d ago · dev-null.sh

  • Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.

    Dev tools · 19h ago · github.com

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 29d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 24d ago · openbot.run

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 22d ago · talanoa.email

Source: Show HN post ↗

Launched alongside, March 2023

the whole month →
  • GPT-4▲1,160

    More accurate, less cringe, smoother & useful daily chats!

    AI · 2023 · openai.com

  • Collato▲972

    One AI search to find anything instantly, across all apps

    AI · 2023

  • Chat with AI using your API keys. Pay only for what you use. ChatGPT, Gemini, Claude, and other LLMs supported. The best chat LLM frontend UI for all AI models.

    AI · 2023 · typingmind.com

  • Meet the internet again

    Work · 2023 · apps.apple.com

  • Sequoia▲726

    Personalized men's sexual health with on-demand experts

    Life & fun · 2023 · sequoia.health

  • BI

    I'm a big fan of the BBC podcast In Our Time -- and (like most people) I've been playing with the OpenAI APIs. In Our Time has almost 1,000 episodes on everything from Cleopatra to the evolution of teeth to plasma physics, all still available, so it's my starting point to learn about most topics. But it's not well organised. So here are the episodes sorted by library code. It's fun to explore. Web scraping is usually pretty tedious, but I found that I could send the minimised HTML to GPT-3 and get (almost) perfect JSON back: the prompt includes the Typescript definition. At the same time I…

    AI · 2023 · genmon.github.io