This article shows a poor grasp on the meaning of unit testing. A unit is the smallest testable bit of code (in Go it would generally be a function). If you redefine the smallest bit of testable code as a http endpoint as a whole, you have a design problem there.
This might be integration testing?