Testing Public and Private Methods in Golang Packages: A Comprehensive Guide
September 03, 2023Goal and Problem Statement The goal of this article is to demonstrate how to effectively test both public and private methods in Go. The…
Written by Ron Liu father of a daughter, fullstack dev You should follow him on Twitter
Goal and Problem Statement The goal of this article is to demonstrate how to effectively test both public and private methods in Go. The…
When developing server-side applications in Node.js, it’s often necessary to cache data that is fetched from remote servers. For instance…
When I firstly learn golang, I think is just like in javascript. It just means it point to nothing. If you think the same way, let’s check…
When you try to manipulate headers inside , you will find it always change the case. More specific, when you set the header normally like…
The issue There is a notorious dangling pointer issue in C language like below: The issue happens because in a function we declare a…
By default anchor provides , while in most front-end project we use . If we can switch anchor to use , it will bring us the below benefits…
Terraform is a Switzerland knife in the DevOps world, and super friendly for the developers. I am a developer for a long time and recently I…
Publish to medium via API with markdown
What apollo datasource cache do and what the problem dataloader cache doesn't solve
typescript types will be wiped when compiling, but how to use these types in runtime?
typescript types will be wiped when compiling, but how to use these types in runtime?
3 ways to debug npm package
Graphql is cool, it exposes the exact contract between frontend and backend in details. However, when you try to use it, there is still gaps…
use ref previous to solve complex effect triggering issue
is the most widely used hook in React. It is handy and looks easy to use, but you must experience infinite loops or some unexpected result…
Graphql becomes more and more mainstream, and is becoming the recommended practice when starting a new project. And it’s critical important…
Unique Index shall ignore nullable columns